2 # ax-linux: Alex' Linux Tools & Scripts
3 # Copyright (c)2013 Alexander Barton (alex@barton.de)
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.
15 USER ?= $(shell id -un)
16 GROUP ?= $(shell stat --format=%G $(DESTDIR)$(PREFIX) 2>/dev/null || id -gn)
20 all-ax: $(ALL) $(SUBDIRS)
22 clean: clean-ax clean-local
25 $(AX_SILENT)for subdir in $(SUBDIRS); do \
26 $(MAKE) -C $$subdir clean || exit 1; \
29 distclean: clean-local distclean-ax distclean-local
32 $(AX_SILENT)for subdir in $(SUBDIRS); do \
33 $(MAKE) -C $$subdir distclean || exit 1; \
36 maintainer-clean: clean-local distclean-local maintainer-clean-ax maintainer-clean-local
39 $(AX_SILENT)for subdir in $(SUBDIRS); do \
40 $(MAKE) -C $$subdir maintainer-clean || exit 1; \
43 check: check-ax check-local
46 $(AX_SILENT)for subdir in $(SUBDIRS); do \
47 $(MAKE) -C $$subdir check || exit 1; \
50 install: install-ax install-local
53 $(AX_SILENT)for subdir in $(SUBDIRS); do \
54 $(MAKE) -C $$subdir install || exit 1; \
60 .PHONY: all clean distclean maintainer-clean check install
61 .PHONY: all-ax clean-ax distclean-ax maintainer-clean-ax check-ax install-ax
62 .PHONY: all-local clean-local distclean-local maintainer-clean-local check-local install-local