summaryrefslogtreecommitdiff
path: root/macros/generic/schemata/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/schemata/Makefile')
-rw-r--r--macros/generic/schemata/Makefile31
1 files changed, 24 insertions, 7 deletions
diff --git a/macros/generic/schemata/Makefile b/macros/generic/schemata/Makefile
index c72cdb6cbd..cf31a10457 100644
--- a/macros/generic/schemata/Makefile
+++ b/macros/generic/schemata/Makefile
@@ -34,17 +34,15 @@ release: $(NAME).pdf
#
# The testing target also compiles the examples file.
testing: $(NAME).pdf schematest.pdf
-
#
# This is the recipe for schematest.pdf. It will work also for dvi output.
-schematest.pdf : schematest.tex
+schematest.pdf : schematest.tex
$(TESTENGINE) --interaction=nonstopmode schematest > /dev/null
if [ -f schematest.dvi ]; then dvipdf schematest; fi
if [ -f schematest.out.ps ]; then rm schematest.out.ps; fi
-
#
# This is the recipe for the package docs. It will work also for dvi output.
-$(NAME).pdf : $(NAME).dtx
+$(NAME).pdf : $(NAME).dtx schemata.sty schemata.ins
$(ENGINE) -shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null
$(ENGINE) --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
@@ -53,6 +51,24 @@ $(NAME).pdf : $(NAME).dtx
$(ENGINE) --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
if [ -f $(NAME).dvi ]; then dvipdf $(NAME); fi
#
+# These are the recipes for all the files that need to be extracted
+# from the dtx file. Any one of them simply extracts the following:
+# README.md, schemata.ins, schemata.sty, schematest.tex
+#
+# Once any one of these recipes is run, the rest will be satisfied.
+# But they need to be there for dependencies to work best.
+README.md : $(NAME).dtx
+ pdftex $(NAME).dtx
+
+schemata.ins : $(NAME).dtx
+ pdftex $(NAME).dtx
+
+schemata.sty : $(NAME).dtx
+ pdftex $(NAME).dtx
+
+schematest.tex : $(NAME).dtx
+ pdftex $(NAME).dtx
+#
# Using this recipe deletes the auxiliary and log files
clean:
rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out,toc}
@@ -62,6 +78,7 @@ clean:
distclean: clean
rm -f $(NAME).{dvi,pdf,sty,synctex.gz,"synctex(busy)"} README.md
rm -f schematest.{dvi,pdf,synctex.gz,"synctex(busy)",tex}
+ rm -f schemata-eps-converted-to.pdf
#
# Using this recipe deletes files for testong
testclean:
@@ -72,7 +89,7 @@ testclean:
inst: release
mkdir -p $(UTREE)/{tex,source,doc}/generic/$(NAME)
cp $(NAME).dtx $(UTREE)/source/generic/$(NAME)
- cp $(NAME).png $(UTREE)/source/generic/$(NAME)
+ cp $(NAME).eps $(UTREE)/source/generic/$(NAME)
cp Makefile $(UTREE)/source/generic/$(NAME)
cp $(NAME).sty $(UTREE)/tex/generic/$(NAME)
cp $(NAME).pdf $(UTREE)/doc/generic/$(NAME)
@@ -83,7 +100,7 @@ inst: release
install: release
sudo mkdir -p $(LOCAL)/{tex,source,doc}/generic/$(NAME)
sudo cp $(NAME).dtx $(LOCAL)/source/generic/$(NAME)
- sudo cp $(NAME).png $(LOCAL)/source/generic/$(NAME)
+ sudo cp $(NAME).eps $(LOCAL)/source/generic/$(NAME)
sudo cp Makefile $(LOCAL)/source/generic/$(NAME)
sudo cp $(NAME).sty $(LOCAL)/tex/generic/$(NAME)
sudo cp $(NAME).pdf $(LOCAL)/doc/generic/$(NAME)
@@ -94,5 +111,5 @@ install: release
zip: release
ln -sf . $(NAME)
zip -Drq $(PWD)/$(NAME)-$(VERS).zip \
-$(NAME)/{README.md,schematest.tex,Makefile,$(NAME).{pdf,dtx,png}}
+$(NAME)/{README.md,Makefile,$(NAME).{pdf,dtx,eps}}
rm $(NAME)