diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-10-19 15:57:32 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-10-19 15:57:32 +0200 |
| commit | acbfd21fab2f548cce5fa126a05cdeacb108f906 (patch) | |
| tree | f566a01eb7edef4ea9b5e58345d1409770b10aa3 | |
| parent | 0cb227c0455922d832a8fe64ed97f59e28543180 (diff) | |
| download | muhqs-game-acbfd21fab2f548cce5fa126a05cdeacb108f906.tar.gz muhqs-game-acbfd21fab2f548cce5fa126a05cdeacb108f906.zip | |
add top level Makefile and clean target to rules/Makefile
| -rw-r--r-- | Makefile | 10 | ||||
| -rw-r--r-- | rules/Makefile | 9 |
2 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..d2d52fcc --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +MAKEDIRS = $(shell dirname $(shell find . -mindepth 2 -name Makefile)) + +.PHONY: all clean + +all: + for dir in $(MAKEDIRS); do $(MAKE) -C $$dir; done + +clean: + for dir in $(MAKEDIRS); do $(MAKE) -C $$dir clean; done + diff --git a/rules/Makefile b/rules/Makefile index da130831..f5fa401e 100644 --- a/rules/Makefile +++ b/rules/Makefile @@ -1,6 +1,11 @@ -.PHONY: all +.PHONY: all clean -all: rules.html maps.html +HTML = rules.html maps.html + +all: $(HTML) %.html: %.md Makefile pandoc --toc $*.md -s -o $@ + +clean: + rm $(HTML) |
