SUBDIRS = btrfs bup lvm
-all: $(SUBDIRS)
-
include Makefile.ax
USER ?= $(shell id -un)
GROUP ?= $(shell stat --format=%G $(DESTDIR)$(PREFIX) 2>/dev/null || id -gn)
-$(SUBDIRS):
- $(MAKE) -C $@
+all: all-ax all-local
+
+all-ax: $(ALL) $(SUBDIRS)
clean: clean-ax clean-local
$(MAKE) -C $$subdir install || exit 1; \
done
+$(SUBDIRS):
+ $(MAKE) -C $@
+
.PHONY: all clean distclean maintainer-clean check install
-.PHONY: clean-ax distclean-ax maintainer-clean-ax check-ax install-ax
-.PHONY: clean-local distclean-local maintainer-clean-local check-local install-local
+.PHONY: all-ax clean-ax distclean-ax maintainer-clean-ax check-ax install-ax
+.PHONY: all-local clean-local distclean-local maintainer-clean-local check-local install-local
.PHONY: $(SUBDIRS)
SUBDIRS = mksnapshot
-all: $(SUBDIRS)
-
include ../Makefile.ax
ALL = btrfs-mksnapshot btrfs-mksnapshot-rootfs 06btrfs-mksnapshot
-all: $(ALL)
+include ../../Makefile.ax
clean-local:
rm -f 06btrfs-mksnapshot
06btrfs-mksnapshot: 06btrfs-mksnapshot.tmpl
cat 06btrfs-mksnapshot.tmpl | sed -e 's@:PREFIX:@$(PREFIX)@g' \
>06btrfs-mksnapshot
-
-include ../../Makefile.ax
SUBDIRS = save-user
-all: $(SUBDIRS)
-
include ../Makefile.ax
# (at your option) any later version.
#
-all: bup-save-user
+ALL = bup-save-user
+
+include ../../Makefile.ax
install-local: bup-save-user
install -d -o $(USER) -g $(GROUP) -m 755 \
$(DESTDIR)/usr/local/bin
install -p -o $(USER) -g $(GROUP) -m 755 bup-save-user \
$(DESTDIR)/usr/local/bin/bup-save-user
-
-include ../../Makefile.ax
SUBDIRS = pvclear
-all: $(SUBDIRS)
-
include ../Makefile.ax
# (at your option) any later version.
#
-all: lvm-pvclear
+ALL = lvm-pvclear
+
+include ../../Makefile.ax
install-local: lvm-pvclear
install -d -o $(USER) -g $(GROUP) -m 755 \
$(DESTDIR)/usr/local/sbin
install -p -o $(USER) -g $(GROUP) -m 755 lvm-pvclear \
$(DESTDIR)/usr/local/sbin/lvm-pvclear
-
-include ../../Makefile.ax