From 0b13288f5cfa2e133b0b137db3e83175d76cce35 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 1 Oct 2013 02:03:18 +0200 Subject: [PATCH] Make PREFIX, GROUP, and AX_SILENT configurable on make command line --- Makefile.ax | 5 ++++- btrfs/mksnapshot/Makefile | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) 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 \ -- 2.39.2