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 | srcdir = @srcdir@ |
---|
11 | |
---|
12 | INSTALL = @INSTALL@ |
---|
13 | INSTALL_PROGRAM = ${INSTALL} -m 755 |
---|
14 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
15 | INSTALL_SCRIPT = ${INSTALL} |
---|
16 | TCL_VERSION = @TCL_VERSION@ |
---|
17 | TCLSH = $(bindir)/tclsh$(TCL_VERSION) |
---|
18 | VERSION = @PACKAGE_VERSION@ |
---|
19 | VPATH = $(srcdir) |
---|
20 | |
---|
21 | CXX = @CXX@ |
---|
22 | CC = @CC@ |
---|
23 | CFLAGS_DEBUG = @CFLAGS_DEBUG@ |
---|
24 | CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ |
---|
25 | SHLIB_LD = @SHLIB_LD@ |
---|
26 | SHLIB_CFLAGS = @SHLIB_CFLAGS@ |
---|
27 | SHLIB_LDFLAGS = @SHLIB_LDFLAGS@ |
---|
28 | SHLIB_SUFFIX = @SHLIB_SUFFIX@ |
---|
29 | CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ |
---|
30 | LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ |
---|
31 | CFLAGS = @CFLAGS@ |
---|
32 | |
---|
33 | RANLIB = @RANLIB@ |
---|
34 | MKDIR_P = @MKDIR_P@ |
---|
35 | AR = ar |
---|
36 | RM = rm -f |
---|
37 | |
---|
38 | destdir = $(prefix)/lib/Rappture$(VERSION)/scripts |
---|
39 | |
---|
40 | FILES = \ |
---|
41 | $(srcdir)/exec.tcl \ |
---|
42 | $(srcdir)/library.tcl \ |
---|
43 | $(srcdir)/objects.tcl \ |
---|
44 | $(srcdir)/result.tcl \ |
---|
45 | $(srcdir)/units.tcl |
---|
46 | |
---|
47 | OBJECTS = \ |
---|
48 | boolean \ |
---|
49 | choice \ |
---|
50 | curve \ |
---|
51 | group \ |
---|
52 | histogram \ |
---|
53 | image \ |
---|
54 | integer \ |
---|
55 | note \ |
---|
56 | number \ |
---|
57 | phase \ |
---|
58 | string |
---|
59 | |
---|
60 | TYPEFILES = \ |
---|
61 | $(srcdir)/types/boolean.tcl \ |
---|
62 | $(srcdir)/types/color.tcl \ |
---|
63 | $(srcdir)/types/file.tcl \ |
---|
64 | $(srcdir)/types/image.tcl \ |
---|
65 | $(srcdir)/types/string.tcl \ |
---|
66 | $(srcdir)/types/units.tcl |
---|
67 | |
---|
68 | VALIDATEFILES = \ |
---|
69 | $(srcdir)/validations/enable.tcl \ |
---|
70 | $(srcdir)/validations/int.tcl \ |
---|
71 | $(srcdir)/validations/imformat.tcl \ |
---|
72 | $(srcdir)/validations/imresize.tcl \ |
---|
73 | $(srcdir)/validations/number.tcl \ |
---|
74 | $(srcdir)/validations/size.tcl |
---|
75 | |
---|
76 | all: tclIndex |
---|
77 | |
---|
78 | tclIndex: install-objects install-types install-validations $(FILES) |
---|
79 | $(TCLSH) $(srcdir)/../tclconfig/mkindex.tcl --srcdir $(srcdir) \ |
---|
80 | --outfile tclIndex |
---|
81 | $(TCLSH) $(srcdir)/../tclconfig/mkobjects.tcl --srcdir $(srcdir) \ |
---|
82 | $(OBJECTS) |
---|
83 | |
---|
84 | install: tclIndex |
---|
85 | $(MKDIR_P) -m 0755 $(destdir) |
---|
86 | for i in $(FILES); do \ |
---|
87 | $(INSTALL) -m 0444 $$i $(destdir) ; \ |
---|
88 | done |
---|
89 | $(INSTALL) -m 0444 tclIndex $(destdir) |
---|
90 | |
---|
91 | install-objects: |
---|
92 | $(MKDIR_P) -m 0755 $(destdir)/objects |
---|
93 | $(INSTALL) -m 0444 $(srcdir)/objects/base.rp $(destdir)/objects |
---|
94 | for i in $(OBJECTS); do \ |
---|
95 | echo "Installing object definition: $$i" ; \ |
---|
96 | $(MKDIR_P) -m 0755 $(destdir)/objects/$$i ; \ |
---|
97 | for j in $(srcdir)/objects/$$i/*; do \ |
---|
98 | $(INSTALL) -m 0444 $$j $(destdir)/objects/$$i ; \ |
---|
99 | done \ |
---|
100 | done |
---|
101 | |
---|
102 | install-types: $(TYPEFILES) |
---|
103 | $(MKDIR_P) -m 0755 $(destdir)/types |
---|
104 | @for i in $(TYPEFILES); do \ |
---|
105 | echo "Installing $$i" ; \ |
---|
106 | $(INSTALL) -m 555 $$i $(destdir)/types ; \ |
---|
107 | done |
---|
108 | |
---|
109 | install-validations: $(VALIDATEFILES) |
---|
110 | $(MKDIR_P) -m 0755 $(destdir)/validations |
---|
111 | @for i in $(VALIDATEFILES); do \ |
---|
112 | echo "Installing $$i" ; \ |
---|
113 | $(INSTALL) -m 555 $$i $(destdir)/validations ; \ |
---|
114 | done |
---|
115 | |
---|
116 | clean: |
---|
117 | $(RM) tclIndex |
---|
118 | |
---|
119 | distclean: clean |
---|
120 | $(RM) Makefile *~ |
---|