File: Makefile

package info (click to toggle)
ctsim 4.3.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,460 kB
  • ctags: 3,722
  • sloc: cpp: 26,759; sh: 3,518; ansic: 1,254; perl: 296; makefile: 265
file content (72 lines) | stat: -rw-r--r-- 2,014 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
docs := ctsim.tex texhelp.sty psbox.tex logo.eps logo.gif ctsim-sgp.tex ctsim-concepts.tex ctsim-gui.tex ctsim-install.tex ctsim-textui.tex ctsim-web.tex alphacalc.eps alphacalc.gif divergent.eps divergent.gif equiangular.eps equiangular.gif equilinear.eps equilinear.gif scangeometry.eps scangeometry.gif tex2rtf.ini ctsim.hpj bullet.bmp verbatim.sty mytitle.sty makeidx.sty mysober.sty fancyhea.sty ctsim-latex.bib ctsim-tex2rtf.bib

pkg=ctsim

all: htmlhelp html pdf 

CLEANFILES=$(pkg).ps $(pkg).hhc $(pkg).hhp $(pkg).hhk $(pkg).bib $(pkg).zip $(pkg).ilg $(pkg).ind $(pkg).dvi $(pkg).bb $(pkg).blg $(pkg).idx $(pkg).toc $(pkg).bbl $(pkg).con $(pkg).ref $(pkg).blg

clean:
	@rm -f $(CLEANFILES) $(pkg)*.html *.aux *.log *~ '#*~' '#*#' .*~
	@rm -rf html

.PHONY: pdf
pdf: ../docs/$(pkg).pdf

../docs/$(pkg).pdf: $(docs)
	$(MAKE) dvi
	dvipdfm $(pkg)
	mv $(pkg).pdf ../docs

#.PHONY: ps
#ps: $(pkg).ps
#$(pkg).ps: $(pkg).pdf
#	pdftops $(pkg).pdf $(pkg).ps

.PHONY: dvi
dvi: $(pkg).dvi
$(pkg).dvi: $(docs)
	cp $(pkg)-latex.bib $(pkg).bib
	latex $(pkg)
	bibtex $(pkg) > /dev/null
	latex $(pkg)
	makeindex $(pkg) > /dev/null
	latex $(pkg)

.PHONY: htmlhelp
htmlhelp: ../docs/$(pkg).htb

../docs/$(pkg).htb: $(docs)
	rm -f $(pkg)*.html $(pkg).hh[pck] $(pkg).zip
	cp $(pkg)-tex2rtf.bib $(pkg).bib
	tex2rtf $(pkg).tex $(pkg).html -html  > /dev/null
	./maphhc.pl
	zip -q $(pkg).zip *.html *.gif $(pkg).hh[pck]
	mv $(pkg).zip $(pkg).htb
	mv $(pkg).htb ../docs

.PHONY: html
html: ../docs/html.tar.gz

../docs/html.tar.gz: $(docs)
	rm -f $(pkg)*.html
	cp $(pkg)-tex2rtf.bib $(pkg).bib
	tex2rtf $(pkg).tex $(pkg).html -html  > /dev/null
	rm -rf html
	mkdir html
	cp *.gif html
	mv $(pkg)*.html html
	GZIP='-9' tar czf html.tar.gz html
	mv html.tar.gz ../docs
	rm -r html

#.PHONY: winhelp
#winhelp: $(docs)
#	rm -f $(pkg).rtf $(pkg).cnt
#	cp $(pkg)-tex2rtf.bib $(pkg).bib
#	tex2rtf $(pkg).tex $(pkg).rtf -winhelp
#	./maphhc.pl
#	hcw /c /m /e $(pkg).hpj
#	mv $(PKG).HLP $(pkg).hlp
#	cp $(pkg).hlp $(pkg).cnt ../docs/$(pkg)/