# Configuration DESTDIR= #prefix=/usr/local prefix=/usr exec_prefix=$(prefix) datarootdir=$(prefix)/share bindir=$(exec_prefix)/bin sbindir=$(exec_prefix)/sbin #sysconfdir=$(prefix)/etc sysconfdir=/etc datadir=$(datarootdir) docdir=$(datarootdir)/doc ################################################################################ # these are the resulting packages packages=libretools libretools-mips64el # and which directories they contains libretools=abslibre-tools chroot-tools devtools fullpkg lib librefetch misc toru libretools-mips64el=mips64el-tools ################################################################################ all: PHONY build build: PHONY build-libretools build-doc install: PHONY install-libretools install-doc check: @cd test && ./testenv roundup %-doc: PHONY doc $(MAKE) -C doc $* %-misc: PHONY src $(MAKE) -C src $* build-%: PHONY src/% $(MAKE) -C src/$* install-%: PHONY src/% $(MAKE) -C src/$* install .SECONDEXPANSION: $(addprefix build-, $(packages)): build-%: PHONY $$(addprefix build-, $$($$*)) $(addprefix install-,$(packages)): install-%: PHONY $$(addprefix install-,$$($$*)) ################################################################################ FORCE: PHONY PHONY: .PHONY: FORCE PHONY