./quantenphysik.mk [ makefile ]
NAME
quantenphysik.mk
AUTHOR
W. Hergert
USAGE
Makefile online material "Einfuehrung in die Quantenphysik"
OPTIONS
One of the following options:
init - seting of rights (chmod)
robodoc - installation of the ROBOdoc documentation software
doc_math - generation of the documentation of QPack and scripts
clean - clean up the documentation (ROBOdoc, QPack documentation)
pack - pack the documentation
help - makefile help
doc_Mac - show the online material (Mac Safari)
doc_Linux - show the online material (Linux Firefox)
SOURCE
33 TEXC =pdflatex 34 PSC =dvips 35 PDFC =dvipdf 36 HTMLV =firefox 37 # 38 FHTMLS = --html --multidoc --index --sections --syntaxcolors --nopre --source_line_numbers --documenttitle 'Einfuehrung in die Quantenphysik - QPack' \ 39 --rc $(DOC)/doc_scripts/robodoc_math.rc --css $(DOC)/doc_scripts/robodoc.css 40 # 41 QT_HOME = $(PWD) 42 MATH = $(QT_HOME)/Math_NB 43 DOC = $(QT_HOME)/doc 44 SCRIPT = $(DOC)/doc_scripts/ 45 RBD = $(DOC)/doc_robodoc 46 # 47 help: 48 clear 49 @echo 50 @echo "++++++++++++++ Quantenphysik online material +++++++++++++++++" 51 @echo 52 @echo 53 @echo " Aufruf: make Schlagwort" 54 @echo " " 55 @echo " init - Ausfuehrungsrechte setzen" 56 @echo " robodoc - ROBOdoc installieren" 57 @echo " doc_math - Code-Dokumentation QPack erzeugen" 58 @echo " clean - Saubermachen" 59 @echo " pack - Einpacken aller files" 60 @echo " help - Diese Hilfe" 61 @echo " " 62 @echo " doc_Mac - Anzeige online-Material (Mac Safari) " 63 @echo " doc_Linux - Anzeige online-Material (Linux Firefox)" 64 @echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" 65 @echo 66 @echo 67 # 68 # ******************** begin installation section ************************************ 69 # 70 # configure robodoc 71 # the configutation starts from tar files in doc_archive 72 # 73 # The installtation of robodoc 74 # 75 robodoc: 76 rm -Rf $(RBD) 77 mkdir $(RBD) 78 cd $(DOC) ; tar -xf $(DOC)/doc_archive/robodoc-4.99.36.tar.gz -C doc_robodoc 79 cd $(RBD)/robodoc* ; mv * .. 80 cd $(RBD) ; rm -Rf robodoc* 81 cd $(RBD) ; ./configure --prefix=$(RBD) 82 cd $(RBD) ; make 83 cd $(RBD) ; make install 84 cd $(RBD) ; make clean 85 # 86 # ******************** end installation section ************************************** 87 # 88 # ******************** begin show documentation ************************************** 89 # 90 # show documentation on Mac with Safari 91 # 92 doc_Mac: 93 /Applications/Safari.app/Contents/MacOS/Safari $(DOC)/doc_html/quantenphysik.html& 94 # 95 # use your browser on Linux (FireFox) 96 # 97 doc_Linux: 98 cd $(DOC) ; $(HTMLV) doc_html/quantenphysik.html&# 99 # 100 # ******************** end show documentation ************************************** 101 # 102 # ********************* begin initialization ***************************************** 103 # 104 init: 105 chmod +x $(QT_HOME)/show.mac 106 chmod +x $(QT_HOME)/show.linux 107 chmod +x $(SCRIPT)/splitter.pl 108 # 109 # ******************** end initialization ******************************************** 110 # 111 # ******************** begin Mathematica documentation ******************************* 112 # 113 # robodoc HTML documentation of the Mathematica package 114 # the packages are split in modules for a separate documentation 115 # 116 doc_math: 117 rm -Rf $(DOC)/doc_src , $(DOC)/doc_mod 118 mkdir $(DOC)/doc_mod 119 cp $(SCRIPT)/* $(DOC)/doc_mod 120 cd $(MATH) ; $(SCRIPT)splitter.pl 121 cp -R $(MATH)/options $(DOC)/doc_mod 122 $(RBD)/bin/robodoc --doc $(DOC)/doc_src --src $(DOC)/doc_mod $(FHTMLS) 123 # 124 # ******************** end Mathematica documentation ******************************* 125 # 126 # ******************** begin clean documentation ******************************* 127 # 128 clean: 129 rm -Rf $(DOC)/doc_src , $(DOC)/doc_mod , $(RBD) 130 # 131 # ******************** end clean documentation ******************************* 132 # 133 # ******************** begin pack the whole package ******************************* 134 # 135 pack: 136 rm -Rf $(DOC)/doc_mod , $(RBD) 137 cd .. ; tar -cf Quantenphysik_1.0.tar --exclude ".svn" Quantenphysik ;gzip Quantenphysik_1.0.tar 138 # 139 # ******************** end pack the whole package *******************************