blob: c653763275c752d93cd3e6915bab9c799d4eb8c6 (
plain)
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
|
TEXMFHOME ?= $(shell kpsewhich -var-value TEXMFHOME)
.PHONY: all clean distclean install dist test clean-test
all: skrapport.tex skrapport.pdf skrapport.cls README
clean: clean-test
rm -f *.gl? *.id? *.aux # problematic files
rm -f *.bbl *.bcf *.bib *.blg *.xdy # biblatex
rm -f *.fls *.log *.out *.run.xml *.toc # junk
distclean: clean
rm -f *.cls *.sty *.clo *.tar.gz *.tds.zip README
git reset --hard
%.pdf: %.tex %.cls
makeglossaries $*
biber $*
pdflatex -interaction=nonstopmode -halt-on-error $<
makeglossaries $*
pdflatex -interaction=nonstopmode -halt-on-error $<
%.cls: %.tex
pdflatex -interaction=nonstopmode -halt-on-error $<
%.sty: skrapport.cls
%.clo: skrapport.cls
README: README.md
sed -e '1,4d;$$d' $< > $@
install: all
install -m 0644 skrapport-*.sty $(TEXMFHOME)/tex/latex/skrapport/
install -m 0644 skrapport-*.clo $(TEXMFHOME)/tex/latex/skrapport/
install -m 0644 skrapport.cls $(TEXMFHOME)/tex/latex/skrapport/skrapport.cls
install -m 0644 skrapport.pdf $(TEXMFHOME)/doc/latex/skrapport/skrapport.pdf
install -m 0644 skrapport.tex $(TEXMFHOME)/source/latex/skrapport/skrapport.tex
install -m 0644 README $(TEXMFHOME)/doc/latex/skrapport/README
-mktexlsr
skrapport.tar.gz: all
mkdir -p skrapport
cp README skrapport/README
cp skrapport.pdf skrapport/skrapport.pdf
mkdir -p skrapport/source
cp Makefile skrapport/source/Makefile
cp skrapport.tex skrapport/source/skrapport.tex
mkdir -p skrapport/latex
cp skrapport-*.sty skrapport/latex/
cp skrapport-*.clo skrapport/latex/
cp skrapport.cls skrapport/latex/skrapport.cls
tar -czf $@ skrapport
rm -rf skrapport
dist: skrapport.tar.gz
test:
cp -f skrapport-*.sty tests/
cp -f skrapport-*.clo tests/
$(MAKE) -C tests
clean-test:
$(MAKE) -C tests clean
rm -rf tests/skrapport-*.sty
rm -rf tests/skrapport-*.clo
|