| 1 |
# $Id: Makefile,v 1.4 2019/08/07 15:29:12 tone Exp $ |
| 2 |
|
| 3 |
# ------------------------------------------------------------------------ |
| 4 |
# variables |
| 5 |
# ------------------------------------------------------------------------ |
| 6 |
|
| 7 |
ROBODOC = robodoc --html --multidoc --index |
| 8 |
#ROBODOC = /temp/tone/building_home/tone/bin/robodoc4.0 --html --multidoc --index |
| 9 |
|
| 10 |
EXAMPLES_DIR = ../examples/Scripting |
| 11 |
XC_TCL_DIR = ../Tcl |
| 12 |
XC_TCL_FILES = \ |
| 13 |
scripting.tcl \ |
| 14 |
scriptingFilter.tcl \ |
| 15 |
scriptingMakeMovie.tcl \ |
| 16 |
scriptingScalarField2D.tcl \ |
| 17 |
scriptingScalarField3D.tcl \ |
| 18 |
scriptingAtomicLabels.tcl \ |
| 19 |
auxil.tcl |
| 20 |
|
| 21 |
XC_TCL_DIRFILES = $(addprefix $(XC_TCL_DIR)/,$(XC_TCL_FILES)) |
| 22 |
EXAMPLES_DIRFILES = $(shell ls $(EXAMPLES_DIR)/*.tcl) $(shell ls $(EXAMPLES_DIR)/*.sh) |
| 23 |
|
| 24 |
all: scripting_docs |
| 25 |
|
| 26 |
scripting_docs: |
| 27 |
if test ! -d scripting_all/examples; then mkdir -p scripting_all/examples; fi |
| 28 |
cp $(XC_TCL_DIRFILES) scripting_all/ |
| 29 |
cp $(EXAMPLES_DIRFILES) scripting_all/examples/ |
| 30 |
$(ROBODOC) --src ./scripting_all/ --doc ./html_docs |
| 31 |
rm -rf scripting_all/ |
| 32 |
|
| 33 |
clean: |
| 34 |
-rm -rf html_docs/ |
| 35 |
-rm *~ |
| 36 |
|
| 37 |
veryclean: clean |
| 38 |
distclean: clean |