source: trunk/packages/vizservers/Makefile.in @ 3471

Last change on this file since 3471 was 3471, checked in by ldelgass, 8 years ago

Makefile fixes: make 'install' target always depend on 'all' target. This
ensures that an up to date build exists before installing, and also permits
the use of "make install" in place of "make all install" or "make all; make install". It doesn't affect the existing build scripts. Likewise, make 'distclean'
always depend on 'clean'. Remove empty contour objects example, as there is no
corresponding object class. Also declare all the standard targets 'all, install,
etc' in the .PHONY section for performance.

File size: 1.2 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12destdir         = $(prefix)/bin
13
14INSTALL         = @INSTALL@
15MKDIR_P         = @MKDIR_P@
16SHELL           = @SHELL@
17RM              = rm -f
18VPATH           = $(srcdir)
19
20SUBDIRS         = @SUBDIRS@
21VTK_LIB_DIR     = @VTK_LIB_DIR@
22CG_LIB_DIR      = @CG_LIB_DIR@
23
24SUBDIRS         = nanoscale pymolproxy
25
26ifneq ($(VTK_LIB_DIR),)
27  SUBDIRS += vtkvis
28endif
29
30ifneq ($(CG_LIB_DIR),)
31  SUBDIRS += nanovis
32endif
33
34.PHONY: all install clean distclean $(SUBDIRS)
35
36FILES           = \
37                start_viz.sh
38
39all:
40        for i in $(SUBDIRS) ; do \
41          $(MAKE) -C $$i all || exit 1 ; \
42        done
43
44install:
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
52clean:
53        for i in $(SUBDIRS) ; do \
54          $(MAKE) -C $$i clean ; \
55        done
56
57distclean:
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.