source: trunk/lang/tcl/Makefile.in @ 1082

Last change on this file since 1082 was 1082, checked in by gah, 13 years ago

update makefile with mkdir_p

File size: 1.6 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10
11destdir         = $(libdir)/Rappture$(PACKAGE_VERSION)
12
13PACKAGE_VERSION = @PACKAGE_VERSION@
14
15INSTALL         = @INSTALL@
16
17CXX             = @CXX@
18CC              = @CC@
19CFLAGS_DEBUG    = @CFLAGS_DEBUG@
20CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
21STLIB_LD        = @STLIB_LD@
22SHLIB_LD        = @SHLIB_LD@
23SHLIB_CFLAGS    = @SHLIB_CFLAGS@
24SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
25SHLIB_SUFFIX    = @SHLIB_SUFFIX@
26CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
27LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
28CFLAGS          = @CFLAGS@
29TCL_VERSION     = @TCL_VERSION@
30TK_VERSION      = @TK_VERSION@
31
32RANLIB          = @RANLIB@
33MKDIR_P         = @MKDIR_P@
34AR              = ar
35RM              = rm -f
36
37tcllib          = $$RAPPTURE_INSTALL_DIR/lib/tcl$(TCL_VERSION)
38tklib           = $$RAPPTURE_INSTALL_DIR/lib/tk$(TK_VERSION)
39
40# The script directory is moved from src/tcl.
41
42.PHONY: src scripts tests
43
44all: tcl.env
45        $(MAKE) -C src all
46        $(MAKE) -C scripts all
47
48tcl.env:
49        echo 'export TCL_LIBRARY=$(tcllib):$$TCL_LIBRARY' > tcl.env
50        echo 'export TK_LIBRARY=$(tklib):$$TK_LIBRARY' >> tcl.env
51
52install:
53        $(MKDIR_P) $(destdir)
54        $(INSTALL) -m 0444 pkgIndex.tcl $(destdir)
55        $(MAKE) -C src install
56        $(MAKE) -C scripts install
57        $(INSTALL) -m 0555 tcl.env $(bindir)
58
59test:   
60        $(MAKE) -C tests all
61
62clean:
63        $(MAKE) -C src clean
64        $(MAKE) -C tests clean
65        $(MAKE) -C scripts clean
66
67distclean: clean
68        $(MAKE) -C src distclean
69        $(MAKE) -C tests distclean
70        $(MAKE) -C scripts distclean
71        $(RM) Makefile
72
Note: See TracBrowser for help on using the repository browser.