source: branches/r9/examples/zoo/drawing/Makefile.in @ 4839

Last change on this file since 4839 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: 846 bytes
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9srcdir          = @srcdir@
10prefix          = @prefix@
11
12INSTALL         = @INSTALL@
13MKDIR_P         = @MKDIR_P@
14VPATH           = $(srcdir)
15RM              = rm -f
16
17FILES           = \
18                $(srcdir)/drawing.tcl \
19                $(srcdir)/tool.xml
20
21destdir         = $(prefix)/examples/zoo/drawing
22
23.PHONY: all install install-files install-images clean distclean
24
25all:
26
27install: all install-files install-images
28
29install-files:
30        $(MKDIR_P) -m 0755 $(destdir)
31        for i in $(FILES) ; do \
32          $(INSTALL) -m 0444  $$i $(destdir) ; \
33        done
34
35install-images:
36        $(MKDIR_P) -m 0755 $(destdir)/images
37        for i in $(srcdir)/images/* ; do \
38          $(INSTALL) -m 0444  $$i $(destdir)/images ; \
39        done
40
41clean:
42
43distclean: clean
44        $(RM) Makefile *~
Note: See TracBrowser for help on using the repository browser.