File: makefile

package info (click to toggle)
ucblogo 6.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 7,636 kB
  • sloc: ansic: 16,989; cpp: 3,818; makefile: 186; perl: 3
file content (38 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download | duplicates (2)
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
BUILDIR	      = `pwd`
INFODIR	      = $(prefix)/info
DOCSDIR	      = $(LIBLOC)/docs
HTMLDIR	      = $(DOCSDIR)/html

all: usermanual.ps usermanual.pdf html/usermanual_1.html ucblogo.info

ucblogo.info: usermanual.texi
	makeinfo usermanual.texi

usermanual.dvi: usermanual.texi
	tex --interaction batchmode usermanual.texi
	tex --interaction batchmode usermanual.texi
	texindex usermanual.cp
	tex --interaction batchmode usermanual.texi

usermanual.ps: usermanual.dvi
	dvips -t letter -o usermanual.ps usermanual.dvi

usermanual.pdf: usermanual.ps usermanual.dvi
	ps2pdf usermanual.ps
	dvipdf usermanual.dvi

html/usermanual_1.html: usermanual.texi
	for d in html; do [ -d $$d ] || mkdir -p $$d || exit 1; done
	makeinfo --html --no-split --no-headers -o usermanual.html usermanual.texi

ship:
	-rm -f *.{aux,cp,cps,dvi,fn,ky,log,pg,toc,tp,vr}

install: all
	for d in $(INFODIR) $(DOCSDIR) $(HTMLDIR); do [ -d $$d ] || mkdir -p $$d || exit 1; done
	-cp -f *.info* $(INFODIR)/.
	-cp -f html/*.html $(HTMLDIR)/.
	-cp -f usermanual.ps $(DOCSDIR)/.
	-cp -f usermanual.pdf $(DOCSDIR)/.
	-cp -f usermanual.texi $(DOCSDIR)/.
	-cp -f ../usermanual $(DOCSDIR)/.