Description: debianization: build part Meant to maintain a minimal debian/rules, to fix warnings, to address Debian specific build stuff. Origin: debian Forwarded: not-needed Author: Jerome Benoit Last-Update: 2020-05-06 --- a/AutoConf/makefile.in +++ b/AutoConf/makefile.in @@ -202,6 +202,24 @@ CXREF = cxref # ------------------------------------------------------- +# TtH is a [La]TeX to HTML translator program. +# + +TTH = tth + +# ------------------------------------------------------- +# HTML2text is a HTML-to-text converter program. +# + +HTML2TEXT = html2text + +# ------------------------------------------------------- +# PDFLaTeX is a LaTeX composer program. +# + +PDFLATEX = pdflatex -no-shell-escape -interaction=batchmode + +# ------------------------------------------------------- # Defines to support (non-ANSI) C compilers. # For Solaris 2 you may have to define HAVE_STRING_H # For some versions of Cygwin you may have to define @@ -457,6 +475,8 @@ # The main target # ----------------------------------------------------------------------------- +dh_auto_build_default: default changelog doc + default all: bibtool$(EXT) bibtool$(EXT): $(OFILES) $(REGEX) $(KPATHSEA_STATIC) @@ -486,6 +506,22 @@ .c$(OBJ): $(CC) $(C_FLAGS) $(DONT_LINK) -c $< -o $@ +Changes.pdf: Changes.tex + $(PDFLATEX) $< + +Changes.html: Changes.tex + $(TTH) -r -u0 < $< > $@ + +Changes.txt: Changes.html + $(HTML2TEXT) -ascii $< | \ + sed \ + -e 's@BIBTEX@BibTeX@g' \ + -e 's@LATEX@LaTeX@g' \ + -e 's@TEX@TeX@g' \ + -e 's@BIBTOOL@BibTool@g' \ + -e 's@BIBTCL@BibTcl@g' \ + > $@ + # __________________________________________________________________ # Include the makefile into the dependencies to force updates # when the makefile is modified. @@ -525,6 +561,8 @@ info: +changelog: Changes.pdf Changes.html Changes.txt + test check: Test Test: (cd test; $(MAKE))