From: Alexander Barton Date: Tue, 1 Oct 2013 00:03:18 +0000 (+0200) Subject: Make PREFIX, GROUP, and AX_SILENT configurable on make command line X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=0b13288f5cfa2e133b0b137db3e83175d76cce35;p=ax-linux.git Make PREFIX, GROUP, and AX_SILENT configurable on make command line --- diff --git a/Makefile.ax b/Makefile.ax index 916fe14..71a566d 100644 --- a/Makefile.ax +++ b/Makefile.ax @@ -8,7 +8,10 @@ # (at your option) any later version. # -AX_SILENT = @ +AX_SILENT ?= @ + +PREFIX ?= /usr/local +GROUP ?= staff $(SUBDIRS): $(MAKE) -C $@ diff --git a/btrfs/mksnapshot/Makefile b/btrfs/mksnapshot/Makefile index 059c10d..098f093 100644 --- a/btrfs/mksnapshot/Makefile +++ b/btrfs/mksnapshot/Makefile @@ -11,10 +11,10 @@ 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 \