]> arthur.barton.de Git - ax-linux.git/blob - Makefile.ax
Add lvm-pvclear script
[ax-linux.git] / Makefile.ax
1 #
2 # ax-linux: Alex' Linux Tools & Scripts
3 # Copyright (c)2013 Alexander Barton (alex@barton.de)
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10
11 AX_SILENT ?= @
12
13 PREFIX ?= /usr/local
14
15 USER ?= $(shell id -un)
16 GROUP ?= $(shell stat --format=%G $(DESTDIR)$(PREFIX) 2>/dev/null || id -gn)
17
18 $(SUBDIRS):
19         $(MAKE) -C $@
20
21 clean: clean-ax clean-local
22
23 clean-ax:
24         $(AX_SILENT)for subdir in $(SUBDIRS); do \
25           $(MAKE) -C $$subdir clean || exit 1; \
26          done
27
28 distclean: distclean-ax distclean-local
29
30 distclean-ax:
31         $(AX_SILENT)for subdir in $(SUBDIRS); do \
32           $(MAKE) -C $$subdir distclean || exit 1; \
33          done
34
35 maintainer-clean: maintainer-clean-ax maintainer-clean-local
36
37 maintainer-clean-ax:
38         $(AX_SILENT)for subdir in $(SUBDIRS); do \
39           $(MAKE) -C $$subdir maintainer-clean || exit 1; \
40          done
41
42 check: check-ax check-local
43
44 check-ax:
45         $(AX_SILENT)for subdir in $(SUBDIRS); do \
46           $(MAKE) -C $$subdir check || exit 1; \
47          done
48
49 install: install-ax install-local
50
51 install-ax:
52         $(AX_SILENT)for subdir in $(SUBDIRS); do \
53           $(MAKE) -C $$subdir install || exit 1; \
54          done
55
56 .PHONY: all clean distclean maintainer-clean check install
57 .PHONY: clean-ax distclean-ax maintainer-clean-ax check-ax install-ax
58 .PHONY: clean-local distclean-local maintainer-clean-local check-local install-local
59 .PHONY: $(SUBDIRS)