]> arthur.barton.de Git - backup-script.git/commitdiff
Move Makefile.ax into new lib/ directory
authorAlexander Barton <alex@barton.de>
Mon, 3 Aug 2015 14:25:40 +0000 (16:25 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 3 Aug 2015 14:25:40 +0000 (16:25 +0200)
Makefile
Makefile.ax [deleted file]
bin/Makefile
etc/Makefile
examples/Makefile
lib/Makefile.ax [new file with mode: 0644]

index b807cab2aa22d343b0b19bb0e0e911c0a51af793..1f09876b085d0242ba714f13fee847ed16f1720d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
 
 SUBDIRS = bin etc examples
 
-include ./Makefile.ax
+include ./lib/Makefile.ax
 
 install-local:
        install -d -o $(USER) -g $(GROUP) -m 755 \
diff --git a/Makefile.ax b/Makefile.ax
deleted file mode 100644 (file)
index 180ce3c..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# ax-make: Alex' Simple Makefile System
-# Copyright (c)2014 Alexander Barton (alex@barton.de)
-#
-# This library is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as published
-# by the Free Software Foundation; either version 2.1 of the License, or
-# (at your option) any later version.
-#
-
-AX_SILENT ?= @
-
-PREFIX ?= /usr/local
-
-USER ?= $(shell id -un)
-GROUP ?= $(shell stat --format=%G $(DESTDIR)$(PREFIX) 2>/dev/null || id -gn)
-
-all: all-ax all-local
-
-all-ax: $(ALL) $(SUBDIRS)
-
-clean: clean-ax clean-local
-
-distclean: clean-local distclean-ax distclean-local
-
-maintainer-clean: clean-local distclean-local maintainer-clean-ax maintainer-clean-local
-
-check: check-pre check-ax check-local check-post
-
-install: install-ax install-local
-
-all-ax clean-ax distclean-ax maintainer-clean-ax check-ax install-ax:
-       $(AX_SILENT)for subdir in $(SUBDIRS); do \
-         target=`echo "$@" | sed -e 's/-ax$$//'`; \
-         echo "Making \"$$target\" in \"$$subdir\" ..."; \
-         $(MAKE) -C $$subdir $$target || exit 1; \
-        done
-
-.PHONY: all clean distclean maintainer-clean check install
-.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: check-pre check-post
-.PHONY: $(SUBDIRS)
index 38c6c3a85beb18c15956c01864c992a8f57e0561..d665571f7df59f71e2a3904e9ef7c29c8c9265a0 100644 (file)
@@ -3,7 +3,7 @@
 # Copyright (c)2008-2015 Alexander Barton <alex@barton.de>
 #
 
-include ../Makefile.ax
+include ../lib/Makefile.ax
 
 install-local:
        install -d -o $(USER) -g $(GROUP) -m 755 \
index 34e39df99548b564c2c6ff2227506ab2f7488cb4..7822f7024689adaebf35ac7b00acbdc2141a69f5 100644 (file)
@@ -3,4 +3,4 @@
 # Copyright (c)2008-2015 Alexander Barton <alex@barton.de>
 #
 
-include ../Makefile.ax
+include ../lib/Makefile.ax
index 34e39df99548b564c2c6ff2227506ab2f7488cb4..7822f7024689adaebf35ac7b00acbdc2141a69f5 100644 (file)
@@ -3,4 +3,4 @@
 # Copyright (c)2008-2015 Alexander Barton <alex@barton.de>
 #
 
-include ../Makefile.ax
+include ../lib/Makefile.ax
diff --git a/lib/Makefile.ax b/lib/Makefile.ax
new file mode 100644 (file)
index 0000000..180ce3c
--- /dev/null
@@ -0,0 +1,43 @@
+#
+# ax-make: Alex' Simple Makefile System
+# Copyright (c)2014 Alexander Barton (alex@barton.de)
+#
+# This library is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published
+# by the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+#
+
+AX_SILENT ?= @
+
+PREFIX ?= /usr/local
+
+USER ?= $(shell id -un)
+GROUP ?= $(shell stat --format=%G $(DESTDIR)$(PREFIX) 2>/dev/null || id -gn)
+
+all: all-ax all-local
+
+all-ax: $(ALL) $(SUBDIRS)
+
+clean: clean-ax clean-local
+
+distclean: clean-local distclean-ax distclean-local
+
+maintainer-clean: clean-local distclean-local maintainer-clean-ax maintainer-clean-local
+
+check: check-pre check-ax check-local check-post
+
+install: install-ax install-local
+
+all-ax clean-ax distclean-ax maintainer-clean-ax check-ax install-ax:
+       $(AX_SILENT)for subdir in $(SUBDIRS); do \
+         target=`echo "$@" | sed -e 's/-ax$$//'`; \
+         echo "Making \"$$target\" in \"$$subdir\" ..."; \
+         $(MAKE) -C $$subdir $$target || exit 1; \
+        done
+
+.PHONY: all clean distclean maintainer-clean check install
+.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: check-pre check-post
+.PHONY: $(SUBDIRS)