source: doc/Makefile @ ab65d57

Last change on this file since ab65d57 was 5f4d9c3, checked in by Maciej Prill <mprill@…>, 13 years ago

Rewritten the build system, added lem UTF-8 version.

  • Property mode set to 100644
File size: 843 bytes
Line 
1include ../config.mak
2
3all: utt.info utt.dvi utt.html utt.pdf utt.ps
4
5utt.info: utt.texinfo
6        $(MAKEINFO) $< -o $@
7
8utt.dvi: utt.texinfo
9        $(TEXI2DVI) --build=clean $< -o $@
10
11utt.html: utt.texinfo
12        $(MAKEINFO) --html --no-split $< -o $@
13
14utt.pdf: utt.texinfo
15        $(TEXI2PDF) --build=clean $< -o $@
16
17utt.ps: utt.dvi
18        $(DVIPS) $< -o $@
19
20.PHONY: install
21install: 
22ifdef SHARE_DIR
23        install -m 0644 utt.info $(SHARE_DIR)/info
24endif
25ifdef DOC_DIR
26        install -m 0644 utt.dvi $(DOC_DIR)
27        install -m 0644 utt.html $(DOC_DIR)
28        install -m 0644 utt.pdf $(DOC_DIR)
29        install -m 0644 utt.ps $(DOC_DIR)
30endif
31
32.PHONY: uninstall
33uninstall:
34ifdef SHARE_DIR
35        rm $(SHARE_DIR)/info/utt.info
36endif
37ifdef DOC_DIR
38        rm $(DOC_DIR)/utt.dvi
39        rm $(DOC_DIR)/utt.html
40        rm $(DOC_DIR)/utt.pdf
41        rm $(DOC_DIR)/utt.ps
42endif
43       
44clean:
45        rm utt.info utt.dvi utt.html utt.pdf utt.ps || true
Note: See TracBrowser for help on using the repository browser.