/[ddp]/manuals/trunk/sgml-howto/Makefile
ViewVC logotype

Contents of /manuals/trunk/sgml-howto/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1942 - (show annotations) (download)
Tue Dec 3 12:17:02 2002 UTC (10 years, 6 months ago) by joy
File size: 1544 byte(s)
just build potato; publish potato
1 # potato or above
2 XML_DECL=/usr/lib/sgml/declaration/xml.dcl
3 # slink or above
4 #XML_DECL=/usr/lib/sgml/declaration/xml.decl
5
6 DEBIAN_VERSIONS := potato
7 # don't need slink
8
9 # DDP standard
10 MANUAL := $(shell basename $(shell pwd))
11 PUBLISHDIR := /org/www.debian.org/www/doc/manuals
12
13 .DELETE_ON_ERROR:
14
15 all:
16 @for subdir in ${DEBIAN_VERSIONS}; do \
17 (cd $$subdir && ${MAKE} $@) \
18 done
19
20 html:
21 @for subdir in ${DEBIAN_VERSIONS}; do \
22 (cd $$subdir && ${MAKE} $@) \
23 done
24
25 validate:
26 nsgmls -s -wxml $(XML_DECL) howto.db
27
28 index.html: index.wml
29 wml -o $@ $<
30
31 install: index.html
32 scp $< howto.db *.dsl Makefile bortz@www.debian.org:public_html/SGML-HOWTO/
33 @for subdir in ${DEBIAN_VERSIONS}; do \
34 (cd $$subdir && ${MAKE} $@) \
35 done
36 $(MAKE) Debian-SGML.tar.gz
37 scp Debian-SGML.tar.gz bortz@www.debian.org:public_html/SGML-HOWTO/
38
39 # DDP standard
40 # This target installs the generated HTML in the published directory.
41 publish: html
42 test -d $(PUBLISHDIR)/$(MANUAL) || install -d -m 755 $(PUBLISHDIR)/$(MANUAL)
43 rm -f $(PUBLISHDIR)/$(MANUAL)/*.html
44 install -d -m 755 $(PUBLISHDIR)/$(MANUAL)
45 install -m 644 --preserve-timestamps potato/*.html $(PUBLISHDIR)/$(MANUAL)/
46 ln -sf howto.html $(PUBLISHDIR)/$(MANUAL)/index.html
47
48 Debian-SGML.tar: distclean
49 (cd ..; tar --exclude=CVS --exclude=.wmlrc --exclude=latex-ss -cvf Debian-HOWTO/$@ Debian-HOWTO)
50
51 Debian-SGML.tar.gz: Debian-SGML.tar
52 gzip -9 -v -f $<
53
54 clean:
55 rm -f *.tar* index.html
56 @for subdir in ${DEBIAN_VERSIONS}; do \
57 (cd $$subdir && ${MAKE} $@) \
58 done
59
60 distclean: clean
61 rm -f *~

  ViewVC Help
Powered by ViewVC 1.1.5