diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -3,13 +3,24 @@ PREFIX=/usr/local SBINDIR=$(PREFIX)/sbin SYSDDIR=$(PREFIX)/lib/systemd/system +SED_SHELL:= +SED_SHELL+=s:^SBINDIR=.*:SBINDIR=$(SBINDIR):; + +SED_SYSD:= +SED_SYSD+=s:^ExecStart=.*/\([^/]\+\)$$:ExecStart=$(SBINDIR)/\1:; + + .PHONY: all all: - @echo Build complete + sed -i -e '$(SED_SHELL)' adu-download + sed -i -e '$(SED_SHELL)' adu-upgrade + sed -i -e '$(SED_SYSD)' adu-download.service + sed -i -e '$(SED_SYSD)' adu-download.timer + sed -i -e '$(SED_SYSD)' adu-upgrade.service .PHONY: install -install: all +install: install -d '$(SBINDIR)' install -m 755 -t '$(SBINDIR)' adu-download install -m 755 -t '$(SBINDIR)' adu-upgrade |