source: branches/1.6/builder/scripts/Makefile.in @ 6128

Last change on this file since 6128 was 3471, checked in by ldelgass, 11 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.9 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@
15TCLSH           = @TCLSH@
16VPATH           = $(srcdir)
17PACKAGE_VERSION = @PACKAGE_VERSION@
18
19FILES           = \
20                $(srcdir)/dragdrop.tcl \
21                $(srcdir)/filmstrip.tcl \
22                $(srcdir)/hierlist.tcl \
23                $(srcdir)/main.tcl \
24                $(srcdir)/objpath.tcl \
25                $(srcdir)/slideframes.tcl \
26                $(srcdir)/templates.tcl \
27                $(srcdir)/tool.rp \
28                $(srcdir)/tweener.tcl
29
30TEMPLATEFILES   = \
31                $(srcdir)/templates/clang.tl \
32                $(srcdir)/templates/fortran77.tl \
33                $(srcdir)/templates/java.tl \
34                $(srcdir)/templates/matlab.tl \
35                $(srcdir)/templates/octave.tl \
36                $(srcdir)/templates/perl.tl \
37                $(srcdir)/templates/python.tl \
38                $(srcdir)/templates/r.tl \
39                $(srcdir)/templates/ruby.tl \
40                $(srcdir)/templates/tcl.tl
41
42version         = $(PACKAGE_VERSION)
43name            = RapptureBuilder$(version)
44
45destdir         = $(libdir)/$(name)/scripts
46
47.PHONY: all install install_scripts install_templates install_images clean distclean
48
49all: tclIndex
50
51tclIndex: $(FILES)
52        $(TCLSH) $(srcdir)/../../gui/cf/mkindex.tcl --srcdir $(srcdir) \
53                --outfile tclIndex
54
55install: all install_scripts install_templates install_images
56
57install_scripts:
58        $(MKDIR_P) -m 0755 $(destdir)
59        @for i in $(FILES); do \
60            echo "Installing $$i" ; \
61            $(INSTALL) -m 444 $$i $(destdir) ; \
62        done
63        $(INSTALL) -m 444 tclIndex $(destdir)
64
65install_templates: $(TEMPLATEFILES)
66        $(MKDIR_P) -m 0755 $(destdir)/templates
67        @for i in $(TEMPLATEFILES); do \
68            echo "Installing $$i" ; \
69            $(INSTALL) -m 555 $$i $(destdir)/templates ; \
70        done
71
72install_images:
73        $(MKDIR_P) -m 0755 $(destdir)/images
74        @for i in $(srcdir)/images/*.png $(srcdir)/images/*.xbm; do \
75            echo "Installing $$i" ; \
76            $(INSTALL) -m 444 $$i $(destdir)/images ; \
77        done
78
79clean:
80        $(RM) tclIndex
81
82distclean: clean
83        $(RM) Makefile *~
Note: See TracBrowser for help on using the repository browser.