################################################################
# Makefile for tkz-orm #
################################################################
help:
@echo ""
@echo " make clean - clean out directory"
@echo " make tidy - clean out directory some more"
@echo " make examples - create examples as PDF and PNG"
@echo " make ctan - create a CTAN-ready archive"
@echo " make doc - typeset documentation"
@echo " make install - install files in local texmf tree"
@echo ""
################################################################
# Master package name #
################################################################
PACKAGE = tkz-orm
FEATURES = index bib
LATEXFLAGS = -interaction=nonstopmode
################################################################
# Directory structure for making zip files #
################################################################
###############################################################
# Data for local installation
###############################################################
################################################################
# User make options #
################################################################
PHONY = clean tidy install
clean:
for I in $(AUXFILES) $(CLEAN) ; do \
rm -f *.$$I ; \
done
@rm -rf $(CTANROOT)/
tidy: clean
@rm -rf *~
ctan: doc
echo "Creating CTAN archive"
mkdir -p $(CTANDIR)/
rm -rf $(CTANDIR)/*
for I in $(INCLUDEPDF) ; do \
cp -f $$I.pdf $(CTANDIR)/ ; \
done ; \
for F in $(CTANINCLUDE) ; do \
cp -f $$F $(CTANDIR)/ ; \
done ; \
cd $(CTANDIR) ; \
zip -ll -q -r -X $(PACKAGE).zip .
cp $(CTANDIR)/$(PACKAGE).zip ./
rm -rf $(CTANROOT)/