# # 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 ?= @ PREFIX ?= /usr/local USER ?= $(shell id -un) GROUP ?= $(shell stat --format=%G $(DESTDIR)$(PREFIX) 2>/dev/null || id -gn) $(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)