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