source: freewrt/docs/handbook/Makefile@ 025bc8e

freewrt_1_0 freewrt_2_0
Last change on this file since 025bc8e was 025bc8e, checked in by Phil Sutter <n0-1@…>, 19 years ago

Ok, moved the handbook to the right place now.

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1138 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 877 bytes
Line 
1NAME = handbook
2VIEWER = xpdf
3
4BASEOBJ = $(NAME).tex
5OBJECTS = *.tex
6BULLSHIT = *.aux *.log *.idx *.toc *.out
7TARGET = $(NAME).pdf
8PAGE =
9
10.PHONY: all clean distclean help
11
12all: $(TARGET)
13
14$(TARGET): $(OBJECTS)
15 # run twice to generate tableofcontents
16 pdflatex $(BASEOBJ)
17 pdflatex $(BASEOBJ)
18 echo $(OBJECTS)
19
20clean:
21 -rm $(BULLSHIT)
22
23tclean:
24 -rm $(TARGET)
25
26distclean: clean tclean
27
28show: all
29 $(VIEWER) $(TARGET) $(PAGE)
30
31help:
32 @echo 'Makefile for $(BASEOBJ)'
33 @echo 'Targets:'
34 @echo 'all - make $(TARGET) (default)'
35 @echo 'show - call $(VIEWER) to view $(TARGET)'
36 @echo ' (runs make first if needed)'
37 @echo ' override VIEWER if xpdf is not ok'
38 @echo ' override PAGE for argv[2] of VIEWER'
39 @echo 'clean - remove crap ($(BULLSHIT))'
40 @echo 'tclean - remove pdf-file ($(TARGET))'
41 @echo 'distclean - clean for commit (run clean and tclean'
42
Note: See TracBrowser for help on using the repository browser.