source: trunk/gui/Makefile.in @ 4503

Last change on this file since 4503 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.1 KB
Line 
1
2srcdir          = @srcdir@
3prefix          = @prefix@
4exec_prefix     = @exec_prefix@
5bindir          = @bindir@
6libdir          = @libdir@
7datadir         = @datadir@
8datarootdir     = @datarootdir@
9mandir          = @mandir@
10includedir      = @includedir@
11
12SHELL           = @SHELL@
13INSTALL         = @INSTALL@
14MKDIR_P         = @MKDIR_P@
15VPATH           = $(srcdir)
16TCLSH           = @TCLSH@
17
18PACKAGE_VERSION = @PACKAGE_VERSION@
19
20version         = $(PACKAGE_VERSION)
21name            = RapptureGUI$(version)
22
23destdir         = $(libdir)/$(name)
24
25FILES           = \
26                pkgIndex.tcl
27
28SUBDIRS         = src scripts apps
29
30.PHONY: all install test clean distclean $(SUBDIRS)
31
32all:
33        for i in $(SUBDIRS) ; do \
34          $(MAKE) -C $$i all || exit 1 ;\
35        done
36
37install:
38        $(MKDIR_P) -m 0755 $(destdir)
39        for i in $(FILES); do \
40            echo "Installing $$i" ; \
41            $(INSTALL) -m 0444 $$i $(destdir) ; \
42        done
43        for i in $(SUBDIRS) ; do \
44          $(MAKE) -C $$i install || exit 1 ;\
45        done
46
47test:
48        #$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)
49
50clean:
51        for i in $(SUBDIRS) ; do \
52          $(MAKE) -C $$i clean ;\
53        done
54
55distclean:
56        for i in $(SUBDIRS) ; do \
57          $(MAKE) -C $$i distclean ;\
58        done
59        $(RM) Makefile pkgIndex.tcl
60        $(RM) -r config.cache config.log config.status autom4te.cache
Note: See TracBrowser for help on using the repository browser.