Last change
on this file since 3715 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:
980 bytes
|
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 | destdir = $(prefix)/examples/3D |
---|
11 | |
---|
12 | SHELL = @SHELL@ |
---|
13 | INSTALL = @INSTALL@ |
---|
14 | MKDIR_P = @MKDIR_P@ |
---|
15 | |
---|
16 | destdir = $(prefix)/examples |
---|
17 | |
---|
18 | FILES = \ |
---|
19 | demo.bash |
---|
20 | |
---|
21 | SUBDIRS = \ |
---|
22 | 3D \ |
---|
23 | app-fermi \ |
---|
24 | c-example \ |
---|
25 | canvas \ |
---|
26 | flow \ |
---|
27 | graph \ |
---|
28 | objects \ |
---|
29 | zoo |
---|
30 | |
---|
31 | .PHONY: all install clean distclean $(SUBDIRS) |
---|
32 | |
---|
33 | all: |
---|
34 | for i in $(SUBDIRS) ; do \ |
---|
35 | $(MAKE) -C $$i all || exit 1 ; \ |
---|
36 | done |
---|
37 | |
---|
38 | install: |
---|
39 | $(MKDIR_P) -m 0755 $(destdir) |
---|
40 | for i in $(FILES) ; do \ |
---|
41 | $(INSTALL) -m 0555 $$i $(destdir) ; \ |
---|
42 | done |
---|
43 | for i in $(SUBDIRS) ; do \ |
---|
44 | $(MAKE) -C $$i install || exit 1 ; \ |
---|
45 | done |
---|
46 | |
---|
47 | clean: |
---|
48 | for i in $(SUBDIRS) ; do \ |
---|
49 | $(MAKE) -C $$i clean || exit 1 ; \ |
---|
50 | done |
---|
51 | |
---|
52 | distclean: clean |
---|
53 | for i in $(SUBDIRS) ; do \ |
---|
54 | $(MAKE) -C $$i distclean || exit 1 ; \ |
---|
55 | done |
---|
56 | $(RM) Makefile *~ |
---|
Note: See
TracBrowser
for help on using the repository browser.