diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e5b38b1 --- /dev/null +++ b/Makefile @@ -0,0 +1,48 @@ +# 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 + +%-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 |