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
|
SHELL=/bin/bash
.SUFFIXES: .ps .dvi .dtx .sty .ins .def
%.sty: %.ins
latex $<
%.dvi: %.dtx
latex $< && latex $<
%.ps: %.dvi
dvips -o $@ $<
%.pdf: %.ps
ps2pdf $<
all: build
distclean clean:
rm -f textopo.aux textopo.dvi textopo.log textopo.out \
textopo.toc AQP1.SP AQP1.phd AQP1.swp AQP1.tpo AQP2spec.ALN \
textopo.ps textopo.pdf \
AQPpro.MSF AQPpro1.shd biotex.sty textopo.def textopo.sty
textopo.dvi: textopo.sty textopo.dtx
build: textopo.sty textopo.pdf
DESTDIR=/
install:
cp textopo.{sty,def} biotex.sty $(DESTDIR)/usr/share/texmf/tex/latex/textopo/
cp textopo.{txt,pdf} $(DESTDIR)/usr/share/doc/textopo/
(cd $(DESTDIR)/usr/share/doc/texmf/latex/textopo \
&& ln -s ../../../textopo/textopo.* . \
&& ln -s ../../../textopo/examples . \
)
.PHONY: distclean clean build install
|