summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
blob: 359f4e63080dcfaf10a3fae2a5bb3c1a8eeb38dc (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
MAIN = openwrt.tex
DEPS = $(MAIN) Makefile config.tex network.tex network-scripts.tex network-scripts.tex wireless.tex build.tex adding.tex bugs.tex

all:
	$(MAKE) cleanup
	latex $(MAIN)
	$(MAKE) openwrt.pdf openwrt.html
	$(MAKE) cleanup

openwrt.html: $(DEPS)
	htlatex $(MAIN)

openwrt.pdf: $(DEPS)
	pdflatex $(MAIN)
	
clean: cleanup
	rm -f openwrt.pdf openwrt.html openwrt.css

cleanup: FORCE
	rm -f *.log *.aux *.toc *.out *.lg *.dvi *.idv *.4ct *.4tc *.xref *.tmp *.dvi


FORCE:
.PHONY: FORCE