diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..27139ae --- /dev/null +++ b/Makefile @@ -0,0 +1,51 @@ +topdir = . +include config.mk + +################################################################################ + +# these are the resulting packages +packages=doc libretools libretools-mips64el librelib libregit +# and which directories they contain +doc=doc +libretools=\ + src \ + src/abslibre-tools \ + src/chroot-tools \ + src/devtools \ + src/fullpkg \ + src/librefetch \ + src/toru +libretools-mips64el=src/mips64el-tools +librelib=src/lib +libregit=src/libregit + +################################################################################ + +all: PHONY build +copy: PHONY $(addprefix copy-, $(packages)) +build: PHONY $(addprefix build-, $(packages)) +install: PHONY $(addprefix install-,$(packages)) +clean: PHONY $(addprefix clean-, $(packages)) +check: + @cd test && ./testenv $(TESTENVFLAGS) roundup + +%/copy: PHONY % + $(MAKE) -C $* copy +%/build: PHONY % + $(MAKE) -C $* +%/install: PHONY % + $(MAKE) -C $* install +%/clean: PHONY % + $(MAKE) -C $* clean + +.SECONDEXPANSION: +$(addprefix copy-, $(packages)): copy-%: PHONY $$(addsuffix /copy, $$($$*)) +$(addprefix build-, $(packages)): build-%: PHONY $$(addsuffix /build, $$($$*)) +$(addprefix install-,$(packages)): install-%: PHONY $$(addsuffix /install,$$($$*)) +$(addprefix clean-, $(packages)): clean-%: PHONY $$(addsuffix /clean, $$($$*)) + +################################################################################ + +FORCE: PHONY +PHONY: +.PHONY: FORCE PHONY |