0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

Proper building and installation of documentation in the Makefiles.

This commit is contained in:
Martin Mares 2000-06-09 06:31:43 +00:00
parent a012cbb16f
commit 99955b54be
6 changed files with 18 additions and 21 deletions

View File

@ -12,8 +12,8 @@ endif
.PHONY: prog.sgml bird.sgml .PHONY: prog.sgml bird.sgml
docs: progdocs userdocs docs: progdocs userdocs
progdocs: prog.html prog.ps
progdocs: prog.html prog.dvi userdocs: bird.html bird.ps
prog.sgml: prog.sgml:
$(srcdir)/tools/progdoc $(srcdir_abs) $(srcdir)/tools/progdoc $(srcdir_abs)
@ -21,11 +21,12 @@ prog.sgml:
%.html: %.sgml %.html: %.sgml
./sgml2html $< ./sgml2html $<
%.info: %.sgml %.dvi: %.tex
sgml2info $< latex $<
latex $<
%.dvi: %.sgml %.ps: %.dvi
./sgml2latex $< dvips -D600 -ta4 -o $@ $<
%.tex: %.sgml %.tex: %.sgml
./sgml2latex --output=tex $< ./sgml2latex --output=tex $<
@ -37,8 +38,9 @@ progspell: prog.sgml
sed -f prog-spell.sed <prog.sgml >prog.spell sed -f prog-spell.sed <prog.sgml >prog.spell
ispell prog.spell ispell prog.spell
userdocs: bird.html bird.dvi bird.txt
clean: clean:
rm -f *.html *.tex *.dvi *.log *.ps *.txt *.aux *.toc *.spell rm -f *.tex *.dvi *.log *.txt *.aux *.toc *.spell
rm -f prog.sgml rm -f prog.sgml
distclean: clean
rm -f *.html *.ps

View File

@ -1,8 +0,0 @@
#!/bin/bash
./sgml2html bird.sgml
./sgml2latex bird.sgml
./sgml2txt bird.sgml
#> bird.txt
#for i in bird.html bird-*.html; do
# lynx -dump $i | grep -v 'file://' | grep -v '^References$' >> bird.txt
# done

View File

@ -1,2 +0,0 @@
#!/bin/bash
./mkdocs; cat bird.txt | sed s/.//g | lpr

View File

@ -3,7 +3,7 @@
objdir=@objdir@ objdir=@objdir@
all depend tags install: all depend tags install install-docs:
$(MAKE) -C $(objdir) $@ $(MAKE) -C $(objdir) $@
docs userdocs progdocs: docs userdocs progdocs:
@ -14,6 +14,6 @@ clean:
find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name depend -or -name ".#*" | xargs rm -f find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name depend -or -name ".#*" | xargs rm -f
distclean: clean distclean: clean
$(MAKE) -C doc clean $(MAKE) -C doc distclean
rm -rf $(objdir) rm -rf $(objdir)
rm -f config.* configure sysdep/autoconf.h sysdep/paths.h Makefile rm -f config.* configure sysdep/autoconf.h sysdep/paths.h Makefile

View File

@ -54,6 +54,10 @@ install: all
echo "Not overwriting old bird.conf" ; \ echo "Not overwriting old bird.conf" ; \
fi fi
install-docs:
$(INSTALL) -d $(docdir)
$(INSTALL_DATA) $(srcdir)/doc/{bird,prog}{,-*}.html $(docdir)/
clean: clean:
find . -name "*.[oa]" -o -name core -o -name depend -o -name "*.html" | xargs rm -f find . -name "*.[oa]" -o -name core -o -name depend -o -name "*.html" | xargs rm -f
rm -f $(exedir)/bird $(exedir)/birdc $(exedir)/bird.ctl .dep-stamp rm -f $(exedir)/bird $(exedir)/birdc $(exedir)/bird.ctl .dep-stamp

View File

@ -39,6 +39,7 @@ bindir=@bindir@
sbindir=@sbindir@ sbindir=@sbindir@
sysconfdir=@sysconfdir@ sysconfdir=@sysconfdir@
localstatedir=@localstatedir@ localstatedir=@localstatedir@
docdir=@prefix@/doc
ifdef source ifdef source