aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-02-13 14:39:44 +0100
committerClifford Wolf <clifford@clifford.at>2017-02-13 14:39:44 +0100
commitce4e1bcfd8c791fe3fb6f991fbfaed309bc1f5ad (patch)
tree0c74941347a751cd2d9a71a7d9c3af0692343686 /Makefile
parent399830dda5009a00ea8a684bc89eb8aa12fbbb84 (diff)
parentea82010fbfe1e306bb3d7fbd29057c0dc5c77e48 (diff)
downloadicestorm-ce4e1bcfd8c791fe3fb6f991fbfaed309bc1f5ad.tar.gz
icestorm-ce4e1bcfd8c791fe3fb6f991fbfaed309bc1f5ad.tar.bz2
icestorm-ce4e1bcfd8c791fe3fb6f991fbfaed309bc1f5ad.zip
Merge branch 'makefiles' of https://github.com/lineprinter/icestorm into lineprinter-makefiles
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 5 insertions, 34 deletions
diff --git a/Makefile b/Makefile
index ffbc4bc..79e7a7f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,40 +1,11 @@
include config.mk
-all:
- $(MAKE) -C icebox
- $(MAKE) -C icepack
- $(MAKE) -C iceprog
- $(MAKE) -C icemulti
- $(MAKE) -C icepll
- $(MAKE) -C icetime
- $(MAKE) -C icebram
+SUBDIRS = icebox icepack iceprog icemulti icepll icetime icebram
-clean:
- $(MAKE) -C icebox clean
- $(MAKE) -C icepack clean
- $(MAKE) -C iceprog clean
- $(MAKE) -C icemulti clean
- $(MAKE) -C icepll clean
- $(MAKE) -C icetime clean
- $(MAKE) -C icebram clean
-
-install:
- $(MAKE) -C icebox install
- $(MAKE) -C icepack install
- $(MAKE) -C iceprog install
- $(MAKE) -C icemulti install
- $(MAKE) -C icepll install
- $(MAKE) -C icetime install
- $(MAKE) -C icebram install
-
-uninstall:
- $(MAKE) -C icebox uninstall
- $(MAKE) -C icepack uninstall
- $(MAKE) -C iceprog uninstall
- $(MAKE) -C icemulti uninstall
- $(MAKE) -C icepll uninstall
- $(MAKE) -C icetime uninstall
- $(MAKE) -C icebram uninstall
+all clean install uninstall:
+ for dir in $(SUBDIRS); do \
+ $(MAKE) -C $$dir $@ || exit; \
+ done
mxebin: clean
$(MAKE) MXE=1