diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..f0f8073 --- /dev/null +++ b/makefile @@ -0,0 +1,16 @@ + +PREFIX ?= /usr/local + +.PHONY: default +default: + @echo Nothing to build! + @echo Run \"make install\" to install. + @echo Or e.g. \"make install PREFIX=/opt\" to install to a non-default location \($(PREFIX)\) + +.PHONY: install +install: + install --owner=mail --group=mail --mode=700 -d /var/spool/spamprox + install -D -t $(PREFIX)/sbin/ spamprox + install -D -t $(PREFIX)/lib/systemd/system/ spamprox.socket spamprox@.service + @which systemctl >/dev/null && systemctl daemon-reload + |