File: Makefile

package info (click to toggle)
normaliz 3.1.1+ds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,636 kB
  • ctags: 1,508
  • sloc: cpp: 18,185; makefile: 253
file content (30 lines) | stat: -rw-r--r-- 650 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
docdir ?= /usr/share/doc/normaliz

PDFLATEX = pdflatex

PDFLATEX_FLAGS = \
	-no-shell-escape \
	-interaction=batchmode

LISTOF_DOCUMENT = Normaliz #NmzIntegrate

default: doc

doc: pdf

pdf: $(addsuffix .pdf,$(LISTOF_DOCUMENT))

install: pdf
	install -d $(DESTDIR)$(docdir)
	cp -p -t $(DESTDIR)$(docdir) $(addsuffix .pdf,$(LISTOF_DOCUMENT))

clean:
	-rm -f $(foreach _suffix, .aux .toc .out .log ,$(addsuffix $(_suffix),$(LISTOF_DOCUMENT)))

maintainer-clean: clean
	-rm -f $(addsuffix .pdf,$(LISTOF_DOCUMENT))

%.pdf : %.tex
	$(PDFLATEX) $(PDFLATEX_FLAGS) -draftmode $<
	$(PDFLATEX) $(PDFLATEX_FLAGS) -draftmode $<
	$(PDFLATEX) $(PDFLATEX_FLAGS) $<