X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=local.mk;h=7284143be85264e4b23cef32918f22c3c2c9ce92;hb=0fb49207175961f538c9d341e53eecae3cbbfe20;hp=b2af1350ae93149c275b19ed65826d4f0467129b;hpb=b4294fb1cbadef65451a13a4a131611959bad617;p=gpl%2Fargeo-freed.git diff --git a/local.mk b/local.mk index b2af135..7284143 100644 --- a/local.mk +++ b/local.mk @@ -18,11 +18,23 @@ clean: $(MAKE) -C sjbin clean install: - $(COPY) -r --no-clobber etc/* $(DESTDIR)$(sysconfdir) - $(COPY) -r usr/bin/* $(DESTDIR)$(bindir) - $(COPY) -r usr/share/* $(DESTDIR)$(datarootdir) - $(COPY) -r usr/lib/* $(DESTDIR)$(libdir) - $(COPY) -r usr/libexec/* $(DESTDIR)$(libexecdir) - $(MAKE) -C sjbin install +# TODO use install and wildcard ? + $(COPY) -v -r --no-clobber etc/* $(DESTDIR)$(sysconfdir) + $(COPY) -v -r usr/bin/* $(DESTDIR)$(bindir) +# $(COPY) -v -r usr/share/* $(DESTDIR)$(datarootdir) + $(COPY) -v -r usr/lib/* $(DESTDIR)$(libdir) + sed -i 's|/usr/local|$(prefix)|' $(DESTDIR)$(libdir)/systemd/system/argeo*.service + sed -i 's|/usr/local|$(prefix)|' $(DESTDIR)$(libdir)/systemd/user/argeo*.service + sed -i 's|/usr/local|$(prefix)|' $(DESTDIR)$(libdir)/argeo/*.args + $(COPY) -v -r usr/libexec/* $(DESTDIR)$(libexecdir) +# $(MAKE) -C sjbin install systemctl daemon-reload - \ No newline at end of file + +uninstall: + $(foreach f, $(shell cd usr/bin/ && find . -type f), $(RM) $(DESTDIR)$(bindir)/$(f);) +# $(foreach f, $(shell find usr/share/ -type f), $(RM) $(DESTDIR)$(datarootdir)/$(f);) + $(foreach f, $(shell cd usr/lib/ && find . -type f), $(RM) $(DESTDIR)$(libdir)/$(f);) + $(foreach f, $(shell cd usr/libexec/ && find . -type f), $(RM) $(DESTDIR)$(libexecdir)/$(f);) + +purge: uninstall + $(foreach f, $(shell cd etc/ && find . -type f), $(RM) $(DESTDIR)$(sysconfdir)/$(f);)