source: freewrt/Docs/handbook/user/Makefile@ 4c593d5

Last change on this file since 4c593d5 was 4c593d5, checked in by Thorsten Glaser <tg@…>, 18 years ago

these annoy me while tab-completing, use caps for stuff that isn't used by ADK

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2851 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.2 KB
Line 
1NAME = handbook
2VIEWER = xpdf
3
4BASEOBJ = $(NAME).tex
5OBJECTS = *.tex
6BULLSHIT = *.aux *.log *.idx *.toc *.out
7TARGETS = $(NAME).pdf allinone splitup
8
9PAGE =
10HTMLOPTS = -no_navigation -noinfo -noaddress -local_icons -image_type png -noimages -noparbox_images
11
12.PHONY: all clean distclean help allinone splitup
13
14all: $(TARGETS)
15
16allinone: $(OBJECTS)
17 mkdir -p $@
18 latex2html $(HTMLOPTS) -split 0 -dir $@ $(BASEOBJ)
19
20splitup: $(OBJECTS)
21 mkdir -p $@
22 latex2html $(HTMLOPTS) -split +3 -dir $@ $(BASEOBJ)
23
24$(NAME).pdf: $(OBJECTS)
25 # run twice to generate tableofcontents
26 pdflatex $(BASEOBJ)
27 pdflatex $(BASEOBJ)
28
29clean:
30 rm -rf $(BULLSHIT)
31
32tclean:
33 rm -rf $(TARGETS)
34
35distclean: clean tclean
36
37show: all
38 $(VIEWER) $(TARGET) $(PAGE)
39
40help:
41 @echo 'Makefile for $(BASEOBJ)'
42 @echo 'Targets:'
43 @echo 'all - make $(TARGET) (default)'
44 @echo 'show - call $(VIEWER) to view $(TARGET)'
45 @echo ' (runs make first if needed)'
46 @echo ' override VIEWER if xpdf is not ok'
47 @echo ' override PAGE for argv[2] of VIEWER'
48 @echo 'clean - remove crap ($(BULLSHIT))'
49 @echo 'tclean - remove pdf-file ($(TARGET))'
50 @echo 'distclean - clean for commit (run clean and tclean'
51
Note: See TracBrowser for help on using the repository browser.