Debian Codegraph @

doc/Makefile

raw
1 # Makefile for FAQ/doc installation and webpage validation
2 # <<ARIZONA-ONLY>>
3 #
4 # This Makefile is for Icon maintenance and FAQ installation at Arizona.
5 # Because of that it is targeted for the Icon development environment
6 # (Mac OS X plus some specialized tools) and is less portable than
7 # other Makefiles.
8 .POSIX:
9
10 MADE = icon.txt icont.txt
11
12 SERVER = lectura.cs.arizona.edu
13 PUBDIR = /cs/www/icon/uguide
14
15
16 # (default:) rebuild icon.txt, icont.txt, and faq.txt from nroff/html sources.
17
18 default: $(MADE)
19
20 icon.txt: ../man/man1/icon.1 clnroff.sed
21 nroff -Tascii -man ../man/man1/icon.1 | \
22 sed -f clnroff.sed | uniq >icon.txt
23
24 icont.txt: ../man/man1/icont.1 clnroff.sed
25 nroff -Tascii -man ../man/man1/icont.1 | \
26 sed -f clnroff.sed | uniq >icont.txt
27
28
29 # install updated files on the Icon website.
30
31 publish: $(MADE)
32 scp *.css *.gif *.jpg *.txt *.htm $(SERVER):$(PUBDIR)
33
34
35 # remove built files to force a rebuild.
36 # do NOT do this before preparing an Icon distribution.
37
38 Clean clean:
39 rm -f $(MADE)