Last change
on this file since 6307 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:
977 bytes
|
Line | |
---|
1 | |
---|
2 | SHELL = @SHELL@ |
---|
3 | |
---|
4 | srcdir = @srcdir@ |
---|
5 | prefix = @prefix@ |
---|
6 | exec_prefix = @exec_prefix@ |
---|
7 | bindir = @bindir@ |
---|
8 | libdir = @libdir@ |
---|
9 | datadir = @datadir@ |
---|
10 | datarootdir = @datarootdir@ |
---|
11 | mandir = @mandir@ |
---|
12 | includedir = @includedir@ |
---|
13 | |
---|
14 | pkgdatadir = $(datadir)/$(PKG_DIR) |
---|
15 | pkglibdir = $(libdir)/$(PKG_DIR) |
---|
16 | pkgincludedir = $(includedir)/$(PKG_DIR) |
---|
17 | top_builddir = . |
---|
18 | |
---|
19 | MKDIR_P = @MKDIR_P@ |
---|
20 | TCL_VERSION = @TCL_VERSION@ |
---|
21 | TCLSH = $(bindir)/tclsh$(TCL_VERSION) |
---|
22 | INSTALL = @INSTALL@ |
---|
23 | |
---|
24 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
---|
25 | |
---|
26 | version = $(PACKAGE_VERSION) |
---|
27 | name = RapptureBuilder$(version) |
---|
28 | |
---|
29 | destdir = $(libdir)/$(name) |
---|
30 | |
---|
31 | .PHONY: all install install-pkg install-scripts clean distclean |
---|
32 | |
---|
33 | all: |
---|
34 | $(MAKE) -C scripts all |
---|
35 | |
---|
36 | install: install-pkg install-scripts |
---|
37 | |
---|
38 | install-pkg: |
---|
39 | $(MKDIR_P) -m 0755 $(destdir) |
---|
40 | $(INSTALL) -m 444 pkgIndex.tcl $(destdir) |
---|
41 | |
---|
42 | install-scripts: scripts |
---|
43 | $(MAKE) -C scripts install |
---|
44 | |
---|
45 | clean: |
---|
46 | $(MAKE) -C scripts clean |
---|
47 | $(RM) tool.xml |
---|
48 | |
---|
49 | distclean: clean |
---|
50 | $(RM) Makefile pkgIndex.tcl *~ |
---|
Note: See
TracBrowser
for help on using the repository browser.