From 157b8888a621a07216c73e79b2534d3a7d3b8ed1 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 4 Sep 2013 23:53:12 +0200 Subject: [PATCH] Add Makefile's --- Makefile | 15 +++++++++++ Makefile.ax | 54 +++++++++++++++++++++++++++++++++++++++ btrfs/Makefile | 15 +++++++++++ btrfs/mksnapshot/Makefile | 23 +++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 Makefile create mode 100644 Makefile.ax create mode 100644 btrfs/Makefile create mode 100644 btrfs/mksnapshot/Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..89cb177 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +# +# ax-linux: Alex' Linux Tools & Scripts +# Copyright (c)2013 Alexander Barton (alex@barton.de) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# + +SUBDIRS = btrfs + +all: $(SUBDIRS) + +include Makefile.ax diff --git a/Makefile.ax b/Makefile.ax new file mode 100644 index 0000000..916fe14 --- /dev/null +++ b/Makefile.ax @@ -0,0 +1,54 @@ +# +# ax-linux: Alex' Linux Tools & Scripts +# Copyright (c)2013 Alexander Barton (alex@barton.de) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# + +AX_SILENT = @ + +$(SUBDIRS): + $(MAKE) -C $@ + +clean: clean-ax clean-local + +clean-ax: + $(AX_SILENT)for subdir in $(SUBDIRS); do \ + $(MAKE) -C $$subdir clean || exit 1; \ + done + +distclean: distclean-ax distclean-local + +distclean-ax: + $(AX_SILENT)for subdir in $(SUBDIRS); do \ + $(MAKE) -C $$subdir distclean || exit 1; \ + done + +maintainer-clean: maintainer-clean-ax maintainer-clean-local + +maintainer-clean-ax: + $(AX_SILENT)for subdir in $(SUBDIRS); do \ + $(MAKE) -C $$subdir maintainer-clean || exit 1; \ + done + +check: check-ax check-local + +check-ax: + $(AX_SILENT)for subdir in $(SUBDIRS); do \ + $(MAKE) -C $$subdir check || exit 1; \ + done + +install: install-ax install-local + +install-ax: + $(AX_SILENT)for subdir in $(SUBDIRS); do \ + $(MAKE) -C $$subdir install || exit 1; \ + done + +.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: $(SUBDIRS) diff --git a/btrfs/Makefile b/btrfs/Makefile new file mode 100644 index 0000000..0dbdf4e --- /dev/null +++ b/btrfs/Makefile @@ -0,0 +1,15 @@ +# +# ax-linux: Alex' Linux Tools & Scripts +# Copyright (c)2013 Alexander Barton (alex@barton.de) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# + +SUBDIRS = mksnapshot + +all: $(SUBDIRS) + +include ../Makefile.ax diff --git a/btrfs/mksnapshot/Makefile b/btrfs/mksnapshot/Makefile new file mode 100644 index 0000000..059c10d --- /dev/null +++ b/btrfs/mksnapshot/Makefile @@ -0,0 +1,23 @@ +# +# ax-linux: Alex' Linux Tools & Scripts +# Copyright (c)2013 Alexander Barton (alex@barton.de) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# + +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 root -m 755 \ + $(DESTDIR)/etc/apt/apt.conf.d + install -p -o root -g root -m 644 06btrfs-mksnapshot \ + $(DESTDIR)/etc/apt/apt.conf.d/06btrfs-mksnapshot + +include ../../Makefile.ax -- 2.39.2