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)
21 clean: clean-ax clean-local
24 $(AX_SILENT)for subdir in $(SUBDIRS); do \
25 $(MAKE) -C $$subdir clean || exit 1; \
28 distclean: distclean-ax distclean-local
31 $(AX_SILENT)for subdir in $(SUBDIRS); do \
32 $(MAKE) -C $$subdir distclean || exit 1; \
35 maintainer-clean: maintainer-clean-ax maintainer-clean-local
38 $(AX_SILENT)for subdir in $(SUBDIRS); do \
39 $(MAKE) -C $$subdir maintainer-clean || exit 1; \
42 check: check-ax check-local
45 $(AX_SILENT)for subdir in $(SUBDIRS); do \
46 $(MAKE) -C $$subdir check || exit 1; \
49 install: install-ax install-local
52 $(AX_SILENT)for subdir in $(SUBDIRS); do \
53 $(MAKE) -C $$subdir install || exit 1; \
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