]> arthur.barton.de Git - ax-debian-repo.git/blob - Makefile.ax
Clean up "ax-debian-repo_*_amd64.buildinfo" file
[ax-debian-repo.git] / Makefile.ax
1 #
2 # ax-make: Alex' Simple Makefile System
3 # Copyright (c)2014 Alexander Barton (alex@barton.de)
4 #
5 # This library is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as published
7 # by the Free Software Foundation; either version 2.1 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 all: all-ax all-local
19
20 all-ax: $(ALL) $(SUBDIRS)
21
22 clean: clean-ax clean-local
23
24 distclean: clean-local distclean-ax distclean-local
25
26 maintainer-clean: clean-local distclean-local maintainer-clean-ax maintainer-clean-local
27
28 check: check-pre check-ax check-local check-post
29
30 install: install-ax install-local
31
32 all-ax clean-ax distclean-ax maintainer-clean-ax check-ax install-ax:
33         $(AX_SILENT)for subdir in $(SUBDIRS); do \
34           target=`echo "$@" | sed -e 's/-ax$$//'`; \
35           echo "Making \"$$target\" in \"$$subdir\" ..."; \
36           $(MAKE) -C $$subdir $$target || exit 1; \
37          done
38
39 .PHONY: all clean distclean maintainer-clean check install
40 .PHONY: all-ax clean-ax distclean-ax maintainer-clean-ax check-ax install-ax
41 .PHONY: all-local clean-local distclean-local maintainer-clean-local check-local install-local
42 .PHONY: check-pre check-post
43 .PHONY: $(SUBDIRS)