Makefile.FAQs File Reference

Makes Frequently Asked Questions #. More...


Detailed Description

Makes Frequently Asked Questions #.

# # # # Dependencies:
# Makefile --> Makefile.FAQs
#

Author:
Kurt Huber; Strahlenzentrum J.L.-Universitaet GIESSEN #
Date:
21.07.2004 #
Version:
15.08.2008 #
# modification history
# --------------------
# 15aug08 kHu	DOXYGEN comments added 
# 
#
#

# Default for info type:
i = a
# Default for signature
s = Hu
SIGNAT = "[`date +%d%b%y`/$(s)]"
PNAM = faqs
TNAM = FAQs
HLIB = /usr/exp/ex_help/$(TNAM)/

MODULS = $(PNAM)

IMAGES = 

# Umsetzen der Umlaut-Macros in @value{...}
# Umsetzen des @PRNAME{}-Macros, da dieser in den Chapters und
# Sections verwendet wird, was nicht immer gut geht (PDF).
SCRPT = -e 's/@"A/@value{Auml}/g' \
	-e 's/@"O/@value{Ouml}/g' \
	-e 's/@"U/@value{Uuml}/g' \
	-e 's/@"a/@value{auml}/g' \
	-e 's/@"o/@value{ouml}/g' \
	-e 's/@"u/@value{uuml}/g' \
	-e 's/@ss{}/@value{szl}/g' \
	-e 's/@prname{}/@value{prname}/g' \
	-e 's/@PRNAME{}/@value{PRNAME}/g'



help: gotoDEFAULT


FAQs:: .neverbuild
	@echo ""
	@echo "*** Making FAQs ***"

FAQs:: info$(i)
	@echo ""
	@echo "*** Cleaning ***"
	cd $(HLIB); rm -f $(PNAM).cp $(PNAM).fn $(PNAM).ky $(PNAM).pg \
		$(PNAM).tmp $(PNAM).toc $(PNAM).tp $(PNAM).vr $(PNAM).aux *.log

infoa:: $(HLIB)/$(PNAM).info $(HLIB)/$(PNAM).txt $(HLIB)/$(PNAM).html \
	$(HLIB)/$(PNAM).dvi $(HLIB)/$(PNAM).pdf

infoi: $(HLIB)/$(PNAM).info

infot: $(HLIB)/$(PNAM).txt

infoh: $(HLIB)/$(PNAM).html

infod: $(HLIB)/$(PNAM).dvi 

infop: $(HLIB)/$(PNAM).pdf

# Info output
$(HLIB)/$(PNAM).info:  $(MODULS/$/.texi) $(IMAGES/*/$(HLIB)&.txt)
	@echo ""
	@echo "*** Making: $@ ***"
	SLIB=`pwd`; export SLIB; cd $(HLIB); \
	makeinfo --no-validate \
		-I $$SLIB:$$SLIB/$(TLIB) \
		$$SLIB/$(PNAM).texi
	chmod 644 $@

# Text output
$(HLIB)/$(PNAM).txt:  $(MODULS/$/.texi) $(IMAGES/*/$(HLIB)&.txt)
	@echo ""
	@echo "*** Making: $@ ***"
	SLIB=`pwd`; export SLIB; cd $(HLIB); \
	makeinfo --no-split --no-validate --no-headers \
		-I $$SLIB:$$SLIB/$(TLIB) \
		$$SLIB/$(PNAM).texi -o $(PNAM).txt
	chmod 644 $@

# HTML output
$(HLIB)/$(PNAM).html:  $(MODULS/$/.texi) $(IMAGES/*/$(HLIB)&.jpg)
	@echo ""
	@echo "*** Making: $@ ***"
	SLIB=`pwd`; export SLIB; cd $(HLIB); \
	makeinfo --html --no-split --no-validate \
		-I $$SLIB:$$SLIB/$(TLIB) \
		$$SLIB/$(PNAM).texi
	chmod 644 $@

# DVI output
$(HLIB)/$(PNAM).dvi:  $(MODULS/$/.texi) $(IMAGES/*/$(HLIB)&.eps)
	@echo ""
	@echo "*** Making: $@ ***"
	SLIB=`pwd`; export SLIB; cd $(HLIB); \
	texi2dvi -s \
		-I $$SLIB:$$SLIB/$(TLIB) \
		$$SLIB/$(PNAM).texi
	chmod 644 $@

# PDF output
$(HLIB)/$(PNAM).pdf:  $(MODULS/$/.texi) $(IMAGES/*/$(HLIB)&.pdf)
	@echo ""
	@echo "*** Making: $@ ***"
	SLIB=`pwd`; export SLIB; cd $(HLIB); \
	texi2dvi --pdf -s \
		-I $$SLIB:$$SLIB/$(TLIB) \
		$$SLIB/$(PNAM).texi
	chmod 644 $@

$(IMAGES/*/$(HLIB)&.txt): $$(@F)
	@echo ""
	@echo "*** Making: $@ ***"
	cp $(@F) $@
	chmod 644 $@

$(IMAGES/$/.txt): 
	echo "(Kein Textformat-Bild vorhanden, siehe: html, pdf, dvi)" > $@

$(IMAGES/*/$(HLIB)&.jpg): $$(@F:.jpg=.ps)
	@echo ""
	@echo "*** Making: $@ ***"
	gs -q -dNOPAUSE -sDEVICE=jpeg -r100 \
			-sOutputFile=$@ $(@F:.jpg=.ps) -c quit
	chmod 644 $@

$(IMAGES/*/$(HLIB)&.eps): $$(@F:.eps=.ps)
	@echo ""
	@echo "*** Making: $@ ***"
	gs -q -dNOPAUSE -sDEVICE=epswrite  \
			-sOutputFile=$@ $(@F:.eps=.ps) -c quit
	chmod 644 $@

$(IMAGES/*/$(HLIB)&.pdf): $$(@F:.pdf=.ps)
	@echo ""
	@echo "*** Making: $@ ***"
	gs -q -dNOPAUSE -sDEVICE=pdfwrite \
			-sOutputFile=$@ $(@F:.pdf=.ps) -c quit
	chmod 644 $@

$(MODULS/$/.texi): $$(@:.texi=.txi)
	sed $(SCRPT) $(@:.texi=.txi) > $@


clean: .neverbuild
	cd $(HLIB); rm -f $(PNAM).cp $(PNAM).fn $(PNAM).ky $(PNAM).pg \
		$(PNAM).tmp $(PNAM).toc $(PNAM).tp $(PNAM).vr $(PNAM).aux *.log


.DEFAULT:
	@echo ""
	@echo "make FAQs i=<i> 		(build INFO files for $(TNAM))"
	@echo "<i>: what INFO files to make"
	@echo "i=a: make all types of info files (default)"
	@echo "i=t: make TEXT type of info files"
	@echo "i=i: make INFO type of info files"
	@echo "i=h: make HTML type of info files"
	@echo "i=d: make DVI type of info files"
	@echo "i=p: make PDF type of info files"
	@echo ""


.neverbuild:

# 

Generated on Wed Oct 15 16:17:23 2008 for Experiment-Software by  doxygen 1.5.6