Now, we use @include command, whereas earlier we have edited the source
with sed. The current method has the advantage that error messages refer
directly to the source file instead of the automatically generated one.
-all: $(SOURCE).pdf $(SOURCE).txt $(SOURCE).html
+all: $(SOURCE).txt $(SOURCE).html $(SOURCE).pdf
.version: FORCE
echo $(VERSION) | cmp -s $@ - || echo $(VERSION) > $@
.version: FORCE
echo $(VERSION) | cmp -s $@ - || echo $(VERSION) > $@
-%.texi: %.texinfo .version
- sed -e 's/\$$Id\$$/$(VERSION)/g' < $< > $@
PNG_FIGS = $(wildcard *.png)
PDF_FIGS = $(patsubst %.png,%.pdf,$(PNG_FIGS))
PNG_FIGS = $(wildcard *.png)
PDF_FIGS = $(patsubst %.png,%.pdf,$(PNG_FIGS))
%.pdf: %.png
convert $< -density 150 $@
%.pdf: %.png
convert $< -density 150 $@
-%.pdf: %.texi $(PDF_FIGS)
+%.pdf: %.texinfo $(PDF_FIGS)
texi2dvi --pdf $<
texi2dvi --pdf $<
texi2dvi --pdf $<
texi2dvi --pdf $<
makeinfo --no-headers --force -o $@ $<
makeinfo --no-headers --force -o $@ $<
makeinfo --html --no-split -o $@ $<
# texi2html --l2h $<
# Fix texinfo HTML output
makeinfo --html --no-split -o $@ $<
# texi2html --l2h $<
# Fix texinfo HTML output
@c %**end of header
@copying
@c %**end of header
@copying
-Manual for Ocera Make System (OMK) version $Id$
+Manual for Ocera Make System (OMK) version @include .version
Copyright @copyright{} 2007, 2008, 2009, 2010, 2011 Michal Sojka, Pavel Pisa
@end copying
Copyright @copyright{} 2007, 2008, 2009, 2010, 2011 Michal Sojka, Pavel Pisa
@end copying