|
From: stephan b. <sg...@us...> - 2004-12-24 01:11:48
|
Update of /cvsroot/pclasses/pclasses2/doc/manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27088/manual Added Files: Makefile.toc Log Message: egg --- NEW FILE: Makefile.toc --- #!/usr/bin/make -f include toc.make DIST_FILES += pclasses2.lyx ######################################################################## # LyX export... ifneq (,$(LYX_BIN)) LYX_EXPORT = pclasses2 LYX_EXPORT_FORMATS = pdf html ps LYX_EXPORT-post: @echo "Renaming and patching exported lyx files..." for y in $(LYX_EXPORT); do \ perl -i -pe s/$$y\.html\#/\#/g $$y.html; \ for f in $(LYX_EXPORT_FORMATS); do \ cmd="mv $$y.$$f $$y-$(PACKAGE_VERSION).$$f"; \ echo $$cmd; $$cmd || exit; \ done; \ done include $(TOC_MAKESDIR)/LYX_EXPORT.make CLEAN_FILES += $(wildcard *.html *.pdf *.ps) docs: LYX_EXPORT else docs: @echo "If you will install lyx and reconfigure you can build the documentation." endif # ^^^^ LYX_BIN ######################################################################## ################################################################ # doc tarball lyxportgend = $(wildcard *.ps *.pdf *.html) ifneq (,$(lyxportgend)) tbname = $(PACKAGE_NAME)-manual-$(PACKAGE_VERSION) pseudosubdir = $(tbname) $(pseudosubdir): ln -s . $@ CLEAN_FILES += $(pseudosubdir) .PHONY: doxygen TARBALL: $(pseudosubdir) TARBALL-%: $(pseudosubdir) TARBALL_TARGETS = docs_gz docs_bz docs_bz_TARBALL = $(tbname).tar.bz2 docs_bz_TARBALL_FLAGS = -j docs_bz_TARBALL_FILES = $(addprefix $(pseudosubdir)/,$(lyxportgend)) docs_gz_TARBALL_FLAGS = -z docs_gz_TARBALL = $(tbname).tar.gz docs_gz_TARBALL_FILES = $(addprefix $(pseudosubdir)/,$(lyxportgend)) include $(TOC_MAKESDIR)/TARBALL.make TARBALL: rm-symlink rm-symlink: rm $(pseudosubdir) endif # /tarball stuff ################################################################ all: docs |