X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=1f09876b085d0242ba714f13fee847ed16f1720d;hb=4e6da882b1f9e4e0b1bf6df10603e55ffaf6b2b2;hp=c6766f9c0871e152e8a34c5100a64ddde0050d77;hpb=f0de0edb7b3e018a68794955e57685dec579eeeb;p=backup-script.git diff --git a/Makefile b/Makefile index c6766f9..1f09876 100644 --- a/Makefile +++ b/Makefile @@ -1,34 +1,12 @@ # # backup-script system for cloning systems using rsync -# Copyright (c)2008-2013 Alexander Barton, alex@barton.de +# Copyright (c)2008-2014 Alexander Barton, alex@barton.de # -PREFIX = /usr/local +SUBDIRS = bin etc examples -all: +include ./lib/Makefile.ax -clean: - -distclean: clean - -maintainer-clean: distclean - -check: - -install: - install -d -o root -g root -m 755 \ - $(DESTDIR)$(PREFIX)/sbin - install -o root -g root -m 755 bin/backup-script \ - $(DESTDIR)$(PREFIX)/sbin/backup-script - install -o root -g root -m 755 bin/backup-script-wrapper \ - $(DESTDIR)$(PREFIX)/sbin/backup-script-wrapper - install -o root -g root -m 755 bin/backup-status \ - $(DESTDIR)$(PREFIX)/sbin/backup-status - install -d -o root -g root -m 755 \ +install-local: + install -d -o $(USER) -g $(GROUP) -m 755 \ $(DESTDIR)$(PREFIX)/etc/backup-script.d - install -d -o root -g root -m 755 $(DESTDIR)/etc - test -e $(DESTDIR)/etc/backup-script.d \ - || ln -s $(DESTDIR)$(PREFIX)/etc/backup-script.d \ - $(DESTDIR)/etc/backup-script.d - -.PHONY = all clean distclean maintainer-clean check install