Makefile 926 Bytes
Newer Older
1
TARGETS	:= "./sprechstunde" "./wev-infozettel" "./aushang-nutzerberater" "./verein-satzung" "./verein-beitrittserklaerung" "./zugangsdaten" "./cardwashAnleitung" "./hygienekonzept"
2
3
4
CLEANDIRS	:= $(TARGETS:%=clean-%)
DISTCLEANDIRS	:= $(TARGETS:%=distclean-%)
OUTPUT_DIR	:= "./output/"
Julian Neureuther's avatar
Julian Neureuther committed
5

6
.PHONY: all subprojects infoheft clean distclean $(CLEANDIRS) $(DISTCLEANDIRS)
Julian Neureuther's avatar
Julian Neureuther committed
7

8
all: subprojects
Julian Neureuther's avatar
Julian Neureuther committed
9

10
11
12
13
14
15
16
subprojects: $(TARGETS) infoheft

clean: $(CLEANDIRS)

distclean: $(DISTCLEANDIRS)

infoheft: $(TARGETS)
Julian Neureuther's avatar
Julian Neureuther committed
17
	pdflatex -halt-on-error -file-line-error -interaction=batchmode infoheft.tex > /dev/null || (egrep ':[[:digit:]]+:' *.log && false)
18
	rm -f infoheft.aux infoheft.log
19
20
21
22
23
24
25
26
27
28
29
30
31
	mv infoheft.pdf $(OUTPUT_DIR)

$(TARGETS):
	mkdir -p $(OUTPUT_DIR)
	QUIET=1 $(MAKE) -s -C $@
	cp $@/*.pdf $(OUTPUT_DIR)

$(CLEANDIRS):
	QUIET=1 $(MAKE) -s clean -C $(@:clean-%=%)

$(DISTCLEANDIRS):
	rm -rf $(OUTPUT_DIR)
	QUIET=1 $(MAKE) -s distclean -C $(@:distclean-%=%)