From af178e89bc2fb9a88896c8a9c72a2ae96c1a31ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Sat, 26 Jun 2021 11:57:48 +0200 Subject: [PATCH] chore: fix codec-specs Makefile We need to run latex twice to get the page numbers, figures numbers and summary right. --- GNUmakefile.template | 18 +++++++++++++++++- documentation/codec-specs/Makefile | 8 +++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/GNUmakefile.template b/GNUmakefile.template index c85b07b..bd418eb 100644 --- a/GNUmakefile.template +++ b/GNUmakefile.template @@ -175,6 +175,21 @@ manualclean: @echo "Removing temporary user manual files... " @$(MAKE) --no-print-directory -C documentation/user-manual clean +manualarchclean: + @echo "Removing generated user manual files... " + @$(MAKE) --no-print-directory -C documentation/user-manual archclean + +codecs: + @echo "Producing codecs specification documentation... " + @$(MAKE) --no-print-directory -C documentation/codec-specs + +codecsclean: + @echo "Removing temporary codecs specification documentation files... " + @$(MAKE) --no-print-directory -C documentation/codec-specs clean + +codecsarchclean: + @echo "Removing generated codecs specification documentation files... " + @$(MAKE) --no-print-directory -C documentation/codec-specs archclean # Some usage info @@ -187,6 +202,7 @@ help: @echo @echo "Documentation related:" @echo "manual - create the user manual (requires LaTeX)" + @echo "codecs - create the codecs spec documentation (requires LaTeX)" @echo @echo "Locale related:" @echo "locale - update locale files" @@ -346,7 +362,7 @@ arch: archclean build.h INSTALL: documentation/install.template @sed "s/@@PKGNAME/$(PKGNAME)/" INSTALL -srcdist: INSTALL distclean manual manualclean +srcdist: INSTALL distclean manual manualclean codecsclean @cd .. ; tar -c -j -X $(PKGNAME)/NODIST -f $(TAR_PREFIX)/$(PKGNAME).tar.bz2 $(PKGNAME) @cd .. ; gpg --homedir .gnupg --default-key 758BCC23 --detach-sign --output $(TAR_PREFIX)/$(PKGNAME).tar.bz2.gpg --armor $(TAR_PREFIX)/$(PKGNAME).tar.bz2 diff --git a/documentation/codec-specs/Makefile b/documentation/codec-specs/Makefile index 83986bd..8149d69 100644 --- a/documentation/codec-specs/Makefile +++ b/documentation/codec-specs/Makefile @@ -1,6 +1,6 @@ -.PHONY : all codecs clean +.PHONY : all clean -all: codecs +all: codecs.pdf clean: @rm -f *~ *.aux *.log *.bak *.out *.toc *.dvi *.ps @@ -8,7 +8,9 @@ clean: archclean: clean @rm -f *.pdf -codecs: +# run latex twice to get the proper number of pages, fig numbers and index table +codecs.pdf: *.tex *.fig *.eps + latex codecs latex codecs dvips codecs.dvi ps2pdf codecs.ps