blob: d58aecff68e6e80a7af5b3ec868b1a89aec0a4b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#Include all selected obj-y files from folder
include Makefile
PHONY :=
BASE_NAME = $(shell basename $(dir $(CURDIR)))
TMP_TEXFILES = *.aux *.log *.nav *.toc *.pdf *.snm *.xdv \
*.bbl *.blg *.out *.vrb *.fls *.fdb_latexmk
PHONY += build
build:
$(Q)$(foreach files,$(obj-y),$(MODMK) $(files);)
$(Q)$(foreach files,$(obj-y),cp -t $(DEPLOY) $(files);)
PHONY += buildhandouts
buildhandouts:
$(Q)$(foreach files,$(obj-handout-y),$(MODMK) $(files);)
$(Q)$(foreach files,$(obj-handout-y),cp -t $(DEPLOYHANDOUT) $(files);)
PHONY += buildprintouts
buildprintouts:
$(Q)$(foreach files,$(obj-y),$(MODMK) $(files);)
$(Q)$(foreach files,$(obj-y),cp -t $(DEPLOYPRINTOUT) $(files);)
.FORCE:
%.pdf: %.tex .FORCE
$(Q)echo "[LATEXMK]" $@
TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS):`pwd`/distribution/autotools $(BUILD) $<
# DON'T delete this empty target! Need for incremental build
%.tex:
PHONY += clean_texfiles
clean_texfiles:
$(Q)rm -f $(TMP_TEXFILES)
.PHONY: $(PHONY)
|