Commits

Joseph Wright committed 546f040

Add examples to Makefile:
this uses the examples as a 'live' test of the build system

  • Participants
  • Parent commits 71c3e73

Comments (0)

Files changed (2)

 all: ctan
 
 clean:
-	rm -r $(TMPDIR)
+	rm -rf $(TMPDIR)
 	pushd ./doc/ ;\
 	make clean ; \
 	popd
+	pushd ./examples/ ;\
+	make clean ; \
+	popd
 
 ctan:
 	mkdir -p $(BUILDDIR)/
 	pushd $(BUILDDIR)/doc ; \
 	make all ; \
 	popd
+	cp ./examples/Makefile $(BUILDDIR)/examples/
+	pushd $(BUILDDIR)/examples ; \
+	make all ; \
+	popd
 	pushd $(TMPDIR) ; \
 	zip -ll -q -r -X beamer.zip . ; \
 	popd

File examples/Makefile

 %.pdf: %.tex
 	pdflatex $(@:%.pdf=%.tex)
 	pdflatex $(@:%.pdf=%.tex)
+	rm -f *.aux *.log *.nav *.out *.snm *.toc *.vrb
 
 clean:
-	rm -f *.aux *.log *.nav *.out *.snm *.toc *.vrb
+	rm -f *.aux *.log *.nav *.pdf *.out *.snm *.toc *.vrb