GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
19
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
ouexam
Browse code
- Added example document to targets.
- Switched to generic dvips and ps2pdf commands for portability. - Cleaned up various rules.
master
OUEXAM_2_4_2
OUEXAM_2_4_1
OUEXAM_2_4
OUEXAM_2_3_2
OUEXAM_2_3_1
OUEXAM_2_3
OUEXAM_2_2
OUEXAM_2_1_3_FINAL
OUEXAM_2_1_3
OUEXAM_2_1_2
OUEXAM_2_1_1
OUEXAM_2_1
1 parent
ee8dfa4
commit
a9e4a03b0f473dc68970f4fa9ae5da3d65036e53
nstanger
authored
on 8 Apr 2004
Patch
Showing
1 changed file
Makefile
Ignore Space
Show notes
View
Makefile
###################################################################### # # File: $Id$ # # Makefile for ouexam document class. # ###################################################################### SHELL=/bin/sh .PHONY: class doc example install tidy clean # files IMAGES = eg1-1.eps eg1-2.eps eg1-3.eps eg2-2.eps eg2-3.eps eg2-4.eps eg2-5.eps # Build everything. all: class doc example # Build the class file only. class: ouexam.cls ouexam.cls: ouexam.dtx latex ouexam.ins # Build the documentation only. # Note: requires ps2pdf (GhostScript) to build the PDF version. doc: ouexam.pdf ouexam.pdf: ouexam.ps ps2pdf $< ouexam.ps: ouexam.dvi dvips -o $@ $< ouexam.dvi: ouexam.dtx latex $< latex $< latex $< # Build the example only. example: (cd example; latex example.tex; latex example.tex) # Install files in the appropriate locations in the texmf tree rooted at # $(TEXMF_INSTALL). Either define this as a shell variable or pass it as # command line argument, e.g., make install TEXMF_INSTALL=/usr/local/texmf. install: class doc example mkdir -p $(TEXMF_INSTALL)/tex/latex/ouexam cp ouexam.cls $(TEXMF_INSTALL)/tex/latex/ouexam mkdir -p $(TEXMF_INSTALL)/doc/latex/ouexam/example cp ouexam.pdf ouexam.dvi ouexam.dtx ouexam.ins $(TEXMF_INSTALL)/doc/latex/ouexam cp example/*.eps example/example.tex example/example.dvi example/example.pdf \ $(TEXMF_INSTALL)/doc/latex/ouexam/example texhash # Clean up: remove temporary files. tidy: rm -f *.tmp *.aux *.out *.log *.glo *.toc # Clean up: remove everything except the original source. clean: tidy rm -f *.dvi *.pdf *.cls
###################################################################### # # File: $Id$ # # Makefile for ouexam document class. # ###################################################################### SHELL=/bin/sh .PHONY: class doc pdfdoc install tidy clean # Build everything. all: class doc # Build the class file only. class: ouexam.cls ouexam.cls: ouexam.dtx latex ouexam.ins # Build the documentation only. doc: ouexam.dvi # only make pdfdoc if you have GhostScript and dvipdf installed pdfdoc: ouexam.pdf ouexam.pdf: ouexam.dvi dvipdf ouexam.dvi ouexam.pdf ouexam.dvi: ouexam.dtx latex ouexam.dtx latex ouexam.dtx latex ouexam.dtx # Install files in the appropriate locations in the texmf tree rooted at # $(TEXMF_INSTALL). Either define this as a shell variable or pass it as # command line argument, e.g., make install TEXMF_INSTALL=/usr/local/texmf. install: mkdir -p $(TEXMF_INSTALL)/tex/latex/ouexam cp ouexam.cls $(TEXMF_INSTALL)/tex/latex/ouexam mkdir -p $(TEXMF_INSTALL)/doc/latex/ouexam cp ouexam.dvi ouexam.dtx ouexam.ins $(TEXMF_INSTALL)/doc/latex/ouexam if [ -f ouexam.pdf ]; then cp ouexam.pdf $(TEXMF_INSTALL)/doc/latex/ouexam; fi texhash # Clean up: remove temporary files. tidy: rm -f *.tmp *.aux *.out *.log *.glo *.toc # Clean up: remove everything except the original source. clean: tidy rm -f *.dvi *.pdf *.cls
Show line notes below