Last change
on this file since 5732 was
3471,
checked in by ldelgass, 12 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 | |
---|
2 | srcdir = @srcdir@ |
---|
3 | prefix = @prefix@ |
---|
4 | exec_prefix = @exec_prefix@ |
---|
5 | bindir = @bindir@ |
---|
6 | libdir = @libdir@ |
---|
7 | datadir = @datadir@ |
---|
8 | datarootdir = @datarootdir@ |
---|
9 | mandir = @mandir@ |
---|
10 | includedir = @includedir@ |
---|
11 | |
---|
12 | SHELL = @SHELL@ |
---|
13 | INSTALL = @INSTALL@ |
---|
14 | MKDIR_P = @MKDIR_P@ |
---|
15 | VPATH = $(srcdir) |
---|
16 | TCLSH = @TCLSH@ |
---|
17 | |
---|
18 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
---|
19 | |
---|
20 | version = $(PACKAGE_VERSION) |
---|
21 | name = RapptureGUI$(version) |
---|
22 | |
---|
23 | destdir = $(libdir)/$(name) |
---|
24 | |
---|
25 | FILES = \ |
---|
26 | pkgIndex.tcl |
---|
27 | |
---|
28 | SUBDIRS = src scripts apps |
---|
29 | |
---|
30 | .PHONY: all install test clean distclean $(SUBDIRS) |
---|
31 | |
---|
32 | all: |
---|
33 | for i in $(SUBDIRS) ; do \ |
---|
34 | $(MAKE) -C $$i all || exit 1 ;\ |
---|
35 | done |
---|
36 | |
---|
37 | install: |
---|
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 | |
---|
47 | test: |
---|
48 | #$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) |
---|
49 | |
---|
50 | clean: |
---|
51 | for i in $(SUBDIRS) ; do \ |
---|
52 | $(MAKE) -C $$i clean ;\ |
---|
53 | done |
---|
54 | |
---|
55 | distclean: |
---|
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.