File: makefile

package info (click to toggle)
scheme2c 2012.10.14-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, sid
  • size: 4,692 kB
  • ctags: 7,013
  • sloc: ansic: 62,496; lisp: 15,686; asm: 873; makefile: 681; sh: 19; csh: 9
file content (46 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download
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
# Makes the documentation files.

pdfs = embedded.pdf index.pdf intro.pdf smithnotes.pdf
# building r4rs.pdf requires latex209 which is not typically available,
# so by default do not build/install it.
#pdfs += r4rs.pdf
all: $(pdfs)

prefix=/usr/local
DOCDIR=$(prefix)/doc/scheme2c
MANDIR=$(prefix)/man

INSTALL = install
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}

.SUFFIXES:

.SUFFIXES: .tex .dvi .ps .pdf
TEX=latex
%.ps:  %.dvi; dvips -K -Ppdf -G0 -R0 -q -tletter -o $@ $<
%.pdf: %.ps; ps2pdf $< $@
%.pdf: %.tex; pdflatex $<

export TEXINPUTS
r4rs.dvi: TEXINPUTS=r4rs:
r4rs.dvi: TEX=latex209
r4rs.dvi: r4rs/r4rs.tex
	$(TEX) -output-directory=. $<

install: install-pdf install-man

install-pdf: $(pdfs)
	$(INSTALL) -d $(DESTDIR)$(DOCDIR)
	$(INSTALL_DATA) $(pdfs) $(DESTDIR)$(DOCDIR)/

install-man:
	$(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
	$(INSTALL_DATA) s2cc.l $(DESTDIR)$(MANDIR)/man1/s2cc.1
	$(INSTALL_DATA) s2ci.l $(DESTDIR)$(MANDIR)/man1/s2ci.1
	ln -sf s2ci.1 $(DESTDIR)$(MANDIR)/man1/sci.1
	ln -sf s2cc.1 $(DESTDIR)$(MANDIR)/man1/scc.1

clean:
	-rm -rf *.pdf *.dvi *.aux *.log *.BAK *.CKP *.toc *.idx