Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve documentation Makefiles #139

Merged
merged 1 commit into from
Jul 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions document/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
#

all:
make -C presentation
make -C presentation all
make -C pb

clean:
make -C presentation clean
make -C pb

pdfclean:
make -C presentation pdf clean
clean-all:
make -C presentation clean-all
make -C pb pdf clean


.PHONY: all clean pdfclean
.PHONY: all clean clean-all
25 changes: 15 additions & 10 deletions document/document.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
all:
make -C document/pb pb.pdf
make -C document/presentation presentation.pdf
all: $(TRGT).pdf
evince $< &

clean:
make -C document/pb clean
make -C document/presentation clean
$(TRGT).pdf: $(TRGT).tex $(OBJS) $(BIB)
pdflatex $(TRGT).tex
pdflatex $(TRGT).tex

pdfclean:
make -C document/pb pdfclean
make -C document/presentation pdfclean
clean-all: clean pdf-clean

.PHONY: all clean pdfclean
pdf-clean: clean
@rm $(TRGT).pdf

clean: doc-clean
@rm -f $(TRGT).aux $(TRGT).log $(TRGT).dvi $(TRGT).bbl $(TRGT).blg
@rm -f *.nav *.out *.xml *.snm *.toc $(TRGT)-blx.bib
@rm -f *~ *.fls *.fdb_latexmk *.vrb *.aux *.bbl *.blg *.log

.PHONY: all clean pdf-clean clean-all
29 changes: 10 additions & 19 deletions document/presentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
OBJS = $(patsubst %.odg,%.pdf,$(wildcard drawings/*.odg))
TRGT = presentation
ROOT_DIR:=../..
include ../../system.mk

run: $(TRGT).pdf
evince $< &
OBJS=$(patsubst %.odg,%.pdf,$(wildcard figures/*.odg))
TRGT=presentation
BIB=$(TRGT).bib

$(TRGT).pdf: $(TRGT).tex $(OBJS) $(TRGT).bib
pdflatex $(TRGT).tex
pdflatex $(TRGT).tex
evince $@ &
include ../document.mk

drawings/%.pdf: drawings/%.odg
make -C drawings
figures/%.pdf: figures/%.odg
make -C figures all

clean:
@rm -f $(TRGT).aux $(TRGT).log $(TRGT).dvi $(TRGT).bbl $(TRGT).blg
@rm -f *.nav *.out *.xml *.snm *.toc $(TRGT)-blx.bib
@rm -f *~ *.fls *.fdb_latexmk *.vrb *.aux *.bbl *.blg *.log
doc-clean:
make -C figures clean

pdfclean: clean
@rm $(TRGT).pdf

.PHONY: run clean veryclean

.PHONY: doc-clean