4 MACROS := $(I)/m4/aple.m4
6 ifeq ($(findstring pub, $(MAKECMDGOALS)),)
8 M4_ARGS += -D PUBLIC=false
11 m4 := Introduction.m4 Unix_Concepts.m4 Networking.m4 LVM.m4 \
12 Filesystems.m4 OS-Level_Virtualization.m4
13 M4_ARGS += -D PUBLIC=true
19 html := $(m4:.m4=.html)
20 imgs := $(wildcard $(I)/imgs/*.svg)
21 files := $(html) $(CSS) index.html $(notdir $(imgs)) aple.ico
22 all: $(addprefix $(DEST)/, $(files))
32 MD_CMD = m4 $(M4_ARGS) $< | sed -e '1,/^<html lang="en">/d' \
33 | markdown -f tables,links > $@
35 $(DEST)/Bash.html: Bash.m4 $(MACROS) | $(DEST)
37 $(DEST)/Command_Line_Utilities.html: Command_Line_Utilities.m4 $(MACROS) | $(DEST)
39 $(DEST)/Git.html: Git.m4 $(MACROS) | $(DEST)
41 $(DEST)/Gridengine.html: Gridengine.m4 $(MACROS) | $(DEST)
44 $(DEST)/%.html: %.m4 $(MACROS) | $(DEST)
48 $(DEST)/%.svg: $(I)/imgs/%.svg | $(DEST)
51 $(DEST)/%.ico: $(I)/imgs/%.svg | $(DEST)
52 convert -level 0%,100%,0.1 $< $@
55 $(DEST)/$(CSS): $(I)/css/$(CSS) | $(DEST)
59 $(DEST)/index.html: $(DEST)/Introduction.html
65 -include Makefile.local