Parcourir la Source

makefile linux

neze il y a 9 ans
Parent
commit
2d3966a247
1 fichiers modifiés avec 22 ajouts et 0 suppressions
  1. 22 0
      source/Makefile

+ 22 - 0
source/Makefile

@@ -0,0 +1,22 @@
1
+.PHONY: package install clean cleandist
2
+
3
+PDFLATEX:=pdflatex -interaction=nonstopmode
4
+PKGDIR:=$(shell kpsewhich --show-path=ls-R | tr : '\n' | grep texmf | grep local | head -n1)
5
+POLYPKGDIR:=$(PKGDIR)/tex/latex/polytechnique
6
+
7
+all: package
8
+
9
+package: polytechnique.sty
10
+
11
+%.sty: %.dtx
12
+	$(PDFLATEX) $*.dtx
13
+
14
+install: package clean
15
+	mkdir -p $(POLYPKGDIR)
16
+	cp -r . $(POLYPKGDIR)
17
+
18
+clean:
19
+	rm -f polytechnique.aux polytechnique.glo polytechnique.idx polytechnique.log polytechnique.out polytechnique.toc
20
+
21
+cleandist: clean
22
+	rm -f polytechnique.pdf polytechnique.sty