Line | |
---|
1 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | |
---|
12 | destdir = $(prefix)/bin |
---|
13 | |
---|
14 | INSTALL = @INSTALL@ |
---|
15 | MKDIR_P = @MKDIR_P@ |
---|
16 | SHELL = @SHELL@ |
---|
17 | RM = rm -f |
---|
18 | VPATH = $(srcdir) |
---|
19 | |
---|
20 | SUBDIRS = @SUBDIRS@ |
---|
21 | VTK_LIB_DIR = @VTK_LIB_DIR@ |
---|
22 | CG_LIB_DIR = @CG_LIB_DIR@ |
---|
23 | |
---|
24 | SUBDIRS = nanoscale pymolproxy |
---|
25 | |
---|
26 | ifneq ($(VTK_LIB_DIR),) |
---|
27 | SUBDIRS += vtkvis |
---|
28 | endif |
---|
29 | |
---|
30 | ifneq ($(CG_LIB_DIR),) |
---|
31 | SUBDIRS += nanovis |
---|
32 | endif |
---|
33 | |
---|
34 | .PHONY: all install clean distclean $(SUBDIRS) |
---|
35 | |
---|
36 | FILES = \ |
---|
37 | start_viz.sh |
---|
38 | |
---|
39 | all: $(SUBDIRS) |
---|
40 | |
---|
41 | $(SUBDIRS): |
---|
42 | $(MAKE) -C $@ all |
---|
43 | |
---|
44 | install: |
---|
45 | $(MKDIR_P) -m 0755 $(destdir) |
---|
46 | for i in $(SUBDIRS) ; do \ |
---|
47 | $(MAKE) -C $$i install || exit 1 ; \ |
---|
48 | done |
---|
49 | $(INSTALL) -m 0555 start_viz.sh $(bindir)/start_viz.sh |
---|
50 | $(INSTALL) -m 0555 start_nanoscale.sh $(bindir)/start_nanoscale.sh |
---|
51 | |
---|
52 | clean: |
---|
53 | for i in $(SUBDIRS) ; do \ |
---|
54 | $(MAKE) -C $$i clean ; \ |
---|
55 | done |
---|
56 | |
---|
57 | distclean: |
---|
58 | for i in $(SUBDIRS) ; do \ |
---|
59 | $(MAKE) -C $$i distclean ; \ |
---|
60 | done |
---|
61 | $(RM) -r autom4te.cache |
---|
62 | $(RM) Makefile config.cache config.log config.status start_viz.sh start_nanoscale.sh *~ |
---|
Note: See
TracBrowser
for help on using the repository browser.