diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-09-23 15:27:05 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-09-23 15:45:45 +0200 |
| commit | 6472f9b041d963436752b01373331e55a04bc99a (patch) | |
| tree | 3a29fee6830ee95cbaed7f91a052d9a3ec8ec5d0 /documentation | |
| parent | eb0bba4058b16fbf00fa74b30969397477aaa115 (diff) | |
Fix build process of PDF docs on macOS and update .gitignore
Note: the syntax of command/switch `sed -i` is slightly different
on macOS vs. Linux and should not be used.
Move .gitignore parts referring to /documentation/ to their own file
'documentation/.gitignore' and add new generated file(s).
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/.gitignore | 45 | ||||
| -rw-r--r-- | documentation/Makefile | 21 |
2 files changed, 57 insertions, 9 deletions
diff --git a/documentation/.gitignore b/documentation/.gitignore new file mode 100644 index 000000000..44b0f2ba3 --- /dev/null +++ b/documentation/.gitignore @@ -0,0 +1,45 @@ +# +# Files to be ignored by Git (do not commit) +# + +# /documentation/ +.xvpics +blocks.0 +blocks.6 +blocks.z +checkers.0 +checkers.6 +checkers.z +copyright.dox +Doxybook +Doxyfile +fltk.0 +fltk.3 +fltk-config.0 +fltk-config.1 +fltk-config.z +fltk.d +fltk.pdf +fltk.z +fluid.0 +fluid.1 +fluid.z +generated.dox +html +latex +sudoku.0 +sudoku.6 +sudoku.z +*.bck +*.bak +*.log + +# /documentation/src/ +src/*.0 +src/*.1 +src/*.3 +src/*.6 +src/*.z +src/fltk-book.tex +src/fltk-book.tex.in +src/fltk-title.tex diff --git a/documentation/Makefile b/documentation/Makefile index 3ecd63700..726ebdf1b 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -68,7 +68,7 @@ dist: docs clean: $(RM) Doxyfile Doxybook $(RM) copyright.dox generated.dox - $(RM) fltk.pdf refman.pdf src/fltk-book.tex src/fltk-book.tex.in + $(RM) fltk.pdf refman.pdf src/fltk-title.tex src/fltk-book.tex.in src/fltk-book.tex $(RMDIR) html latex $(RM) *~ *.bck *.bak *.log $(RM) $(MANPAGES) $(SRC_DOCDIR)/*.0 @@ -182,6 +182,16 @@ refman.pdf: $(HTMLFILES) Doxybook src/fltk-book.tex $(DOXYDOC) Doxybook ./make_pdf +src/fltk-title.tex: src/fltk-title.tex.in + echo "Generating $@ ..." + GIT_REVISION=`git rev-parse --short=10 HEAD`; \ + sed -e"s/@GIT_REVISION@/$$GIT_REVISION/g" \ + < $< > $@ + +src/fltk-book.tex.in: src/fltk-title.tex + echo "Generating $@ ..." + ./make_header $< $@ + src/fltk-book.tex: src/fltk-book.tex.in echo "Generating $@ ..." DOXY_VERSION=`$(DOXYDOC) --version|cut -f1 -d' '`; \ @@ -189,14 +199,7 @@ src/fltk-book.tex: src/fltk-book.tex.in sed -e"s/@YEAR@/$$YEAR/g" \ -e"s/@FLTK_VERSION@/$(FLTK_VERSION)/g" \ -e"s/@DOXY_VERSION@/$$DOXY_VERSION/g" \ - < $< > $@ - -src/fltk-book.tex.in: src/fltk-title.tex.in - echo "Generating $@ ..." - GIT_REVISION=`git rev-parse --short=10 HEAD`; \ - ./make_header $< $@; \ - sed -i -e"s/@GIT_REVISION@/$$GIT_REVISION/g" $@ - + < $< > $@ generated.dox: generated.dox.in echo "Generating $@ ..." |
