| 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 slink
|
| 7 |
|
| 8 |
# DDP standard
|
| 9 |
MANUAL := $(shell basename $(shell pwd))
|
| 10 |
PUBLISHDIR := /org/www.debian.org/www/doc/manuals
|
| 11 |
|
| 12 |
.DELETE_ON_ERROR:
|
| 13 |
|
| 14 |
all:
|
| 15 |
@for subdir in ${DEBIAN_VERSIONS}; do \
|
| 16 |
(cd $$subdir && ${MAKE} $@) \
|
| 17 |
done
|
| 18 |
|
| 19 |
html:
|
| 20 |
@for subdir in ${DEBIAN_VERSIONS}; do \
|
| 21 |
(cd $$subdir && ${MAKE} $@) \
|
| 22 |
done
|
| 23 |
|
| 24 |
validate:
|
| 25 |
nsgmls -s -wxml $(XML_DECL) howto.db
|
| 26 |
|
| 27 |
index.html: index.wml
|
| 28 |
wml -o $@ $<
|
| 29 |
|
| 30 |
install: index.html
|
| 31 |
scp $< howto.db *.dsl Makefile bortz@www.debian.org:public_html/SGML-HOWTO/
|
| 32 |
@for subdir in ${DEBIAN_VERSIONS}; do \
|
| 33 |
(cd $$subdir && ${MAKE} $@) \
|
| 34 |
done
|
| 35 |
$(MAKE) Debian-SGML.tar.gz
|
| 36 |
scp Debian-SGML.tar.gz bortz@www.debian.org:public_html/SGML-HOWTO/
|
| 37 |
|
| 38 |
# DDP standard
|
| 39 |
# This target installs the generated HTML in the published directory.
|
| 40 |
publish: html
|
| 41 |
# fail if there is no PUBLISHDIR
|
| 42 |
[ -d $(PUBLISHDIR) ] || exit 1
|
| 43 |
rm -f $(PUBLISHDIR)/$(MANUAL)/*.html
|
| 44 |
install -d -m 755 $(PUBLISHDIR)/$(MANUAL)
|
| 45 |
install -m 644 --preserve-timestamps $(MANUAL).html/*.html \
|
| 46 |
$(PUBLISHDIR)/$(MANUAL)/
|
| 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 *~
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|