mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
7152e5efbb
Also removed the lib-dir merging with sysdep. Updated #include's accordingly. Fixed make doc on recent Debian together with moving generated doc into objdir. Moved Makefile.in into root dir Retired all.o and birdlib.a Linking the final binaries directly from all the .o files.
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# Force rebuilds
|
|
.PHONY: progspell docs progdocs userdocs
|
|
|
|
doc-srcdir := $(shell cd $(s) && pwd)
|
|
sgml2 := $(doc-srcdir)/sgml2
|
|
|
|
docs: progdocs userdocs
|
|
|
|
doc-fmt = $(1): $(o)prog.$(1) $(o)bird.$(1)
|
|
$(call doc-fmt,html)
|
|
$(call doc-fmt,dvi)
|
|
$(call doc-fmt,ps)
|
|
$(call doc-fmt,pdf)
|
|
|
|
progdocs: $(o)prog.html $(o)prog.pdf
|
|
userdocs: $(o)bird.html $(o)bird.pdf
|
|
progspell: $(o)prog.spell
|
|
|
|
$(o)prog.sgml: $(srcdir)/tools/progdoc $(objdir)/.dir-stamp
|
|
$(srcdir)/tools/progdoc $(srcdir) $@
|
|
|
|
$(o)%.sgml: $(s)%.sgml $(objdir)/.dir-stamp
|
|
cp $< $@
|
|
|
|
$(o)%.html: $(o)%.sgml
|
|
cd $(dir $@) && $(sgml2)html $(notdir $<)
|
|
|
|
$(o)%.dvi: $(o)%.tex
|
|
cd $(dir $@) && TEXINPUTS=$(TEXINPUTS):$(doc-srcdir)/tex latex $(notdir $<)
|
|
cd $(dir $@) && TEXINPUTS=$(TEXINPUTS):$(doc-srcdir)/tex latex $(notdir $<)
|
|
|
|
$(o)%.ps: $(o)%.dvi
|
|
dvips -D600 -ta4 -o $@ $<
|
|
|
|
$(o)%.pdf: $(o)%.ps
|
|
ps2pdf $< $@
|
|
|
|
$(o)%.tex: $(o)%.sgml
|
|
cd $(dir $@) && $(sgml2)latex --output=tex $(notdir $<)
|
|
|
|
$(o)%.txt: $(o)%.sgml
|
|
cd $(dir $@) && $(sgml2)txt $(notdir $<)
|
|
|
|
$(o)prog.spell: $(o)prog.sgml $(s)prog-spell.sed
|
|
sed -f $(lastword $^) <$< >$@
|
|
ispell $@
|
|
|
|
$(call clean,prog.spell $(addprefix *.,html dvi ps pdf sgml tex txt aux log toc))
|