]> arthur.barton.de Git - ax-linux.git/commitdiff
Make PREFIX, GROUP, and AX_SILENT configurable on make command line
authorAlexander Barton <alex@barton.de>
Tue, 1 Oct 2013 00:03:18 +0000 (02:03 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 1 Oct 2013 00:03:30 +0000 (02:03 +0200)
Makefile.ax
btrfs/mksnapshot/Makefile

index 916fe1402db5866fac81917e2f4c56ca641aad11..71a566d4029b41ebd79ce049d8aaf596267fb0df 100644 (file)
@@ -8,7 +8,10 @@
 # (at your option) any later version.
 #
 
-AX_SILENT = @
+AX_SILENT ?= @
+
+PREFIX ?= /usr/local
+GROUP ?= staff
 
 $(SUBDIRS):
        $(MAKE) -C $@
index 059c10daef802f60501f814a7d1ed75eb28e1159..098f0936ef3f90fa2d8031effa89660b4ea36c39 100644 (file)
 all: btrfs-mksnapshot
 
 install-local: btrfs-mksnapshot
-       install -d -o root -g staff -m 755 \
-        $(DESTDIR)/usr/local/sbin
-       install -p -o root -g staff -m 755 btrfs-mksnapshot \
-        $(DESTDIR)/usr/local/sbin/btrfs-mksnapshot
+       install -d -o root -g $(GROUP) -m 755 \
+        $(DESTDIR)$(PREFIX)/sbin
+       install -p -o root -g $(GROUP) -m 755 btrfs-mksnapshot \
+        $(DESTDIR)$(PREFIX)/sbin/btrfs-mksnapshot
        install -d -o root -g root -m 755 \
         $(DESTDIR)/etc/apt/apt.conf.d
        install -p -o root -g root -m 644 06btrfs-mksnapshot \