File: Makefile

package info (click to toggle)
xcrysden 1.5.53-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,528 kB
  • sloc: ansic: 37,997; tcl: 33,106; fortran: 6,409; sh: 2,706; makefile: 660; awk: 352; f90: 33; pascal: 30
file content (37 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: Makefile,v 1.2 2012/03/07 10:23:35 tone Exp $

# ------------------------------------------------------------------------
# variables
# ------------------------------------------------------------------------

ROBODOC = robodoc  --html --multidoc --index

EXAMPLES_DIR = ../examples/Scripting
XC_TCL_DIR   = ../Tcl
XC_TCL_FILES = \
	scripting.tcl \
	scriptingFilter.tcl \
	scriptingMakeMovie.tcl \
	scriptingScalarField2D.tcl \
	scriptingScalarField3D.tcl \
	scriptingAtomicLabels.tcl \
	auxil.tcl

XC_TCL_DIRFILES   = $(addprefix $(XC_TCL_DIR)/,$(XC_TCL_FILES))
EXAMPLES_DIRFILES = $(shell ls $(EXAMPLES_DIR)/*.tcl) $(shell ls $(EXAMPLES_DIR)/*.sh)

all: scripting_docs

scripting_docs:
	if test ! -d scripting_all/examples; then mkdir -p scripting_all/examples; fi
	cp $(XC_TCL_DIRFILES) scripting_all/
	cp $(EXAMPLES_DIRFILES)  scripting_all/examples/
	$(ROBODOC) --src scripting_all/ --doc html_docs	
	rm -rf scripting_all/

clean:
	-rm -rf html_docs/
	-rm *~

veryclean: clean	
distclean: clean