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)/getopts.tcl \ |
---|
43 | $(srcdir)/library.tcl \ |
---|
44 | $(srcdir)/objects.tcl \ |
---|
45 | $(srcdir)/resources.tcl \ |
---|
46 | $(srcdir)/result.tcl \ |
---|
47 | $(srcdir)/task.tcl \ |
---|
48 | $(srcdir)/units.tcl \ |
---|
49 | $(srcdir)/xauth.tcl |
---|
50 | |
---|
51 | OBJECTS = \ |
---|
52 | boolean \ |
---|
53 | choice \ |
---|
54 | curve \ |
---|
55 | group \ |
---|
56 | histogram \ |
---|
57 | image \ |
---|
58 | integer \ |
---|
59 | note \ |
---|
60 | number \ |
---|
61 | periodicelement \ |
---|
62 | phase \ |
---|
63 | string |
---|
64 | |
---|
65 | TYPEFILES = \ |
---|
66 | $(srcdir)/types/atomactive.tcl \ |
---|
67 | $(srcdir)/types/atomelem.tcl \ |
---|
68 | $(srcdir)/types/atomprops.tcl \ |
---|
69 | $(srcdir)/types/boolean.tcl \ |
---|
70 | $(srcdir)/types/choices.tcl \ |
---|
71 | $(srcdir)/types/color.tcl \ |
---|
72 | $(srcdir)/types/file.tcl \ |
---|
73 | $(srcdir)/types/image.tcl \ |
---|
74 | $(srcdir)/types/language.tcl \ |
---|
75 | $(srcdir)/types/string.tcl \ |
---|
76 | $(srcdir)/types/units.tcl |
---|
77 | |
---|
78 | VALIDATEFILES = \ |
---|
79 | $(srcdir)/validations/enable.tcl \ |
---|
80 | $(srcdir)/validations/int.tcl \ |
---|
81 | $(srcdir)/validations/imformat.tcl \ |
---|
82 | $(srcdir)/validations/imresize.tcl \ |
---|
83 | $(srcdir)/validations/number.tcl \ |
---|
84 | $(srcdir)/validations/size.tcl |
---|
85 | |
---|
86 | all: tclIndex |
---|
87 | |
---|
88 | tclIndex: install-objects install-types install-validations $(FILES) |
---|
89 | $(TCLSH) $(srcdir)/../cf/mkindex.tcl --srcdir $(srcdir) \ |
---|
90 | --outfile tclIndex |
---|
91 | $(TCLSH) $(srcdir)/../cf/mkobjects.tcl --srcdir $(srcdir) \ |
---|
92 | $(OBJECTS) |
---|
93 | |
---|
94 | install: tclIndex |
---|
95 | $(MKDIR_P) -m 0755 $(destdir) |
---|
96 | for i in $(FILES); do \ |
---|
97 | $(INSTALL) -m 0444 $$i $(destdir) ; \ |
---|
98 | done |
---|
99 | $(INSTALL) -m 0444 tclIndex $(destdir) |
---|
100 | |
---|
101 | install-objects: |
---|
102 | $(MKDIR_P) -m 0755 $(destdir)/objects |
---|
103 | $(INSTALL) -m 0444 $(srcdir)/objects/base.rp $(destdir)/objects |
---|
104 | for i in $(OBJECTS); do \ |
---|
105 | echo "Installing object definition: $$i" ; \ |
---|
106 | $(MKDIR_P) -m 0755 $(destdir)/objects/$$i ; \ |
---|
107 | for j in $(srcdir)/objects/$$i/*; do \ |
---|
108 | $(INSTALL) -m 0444 $$j $(destdir)/objects/$$i ; \ |
---|
109 | done \ |
---|
110 | done |
---|
111 | |
---|
112 | install-types: $(TYPEFILES) |
---|
113 | $(MKDIR_P) -m 0755 $(destdir)/types |
---|
114 | @for i in $(TYPEFILES); do \ |
---|
115 | echo "Installing $$i" ; \ |
---|
116 | $(INSTALL) -m 555 $$i $(destdir)/types ; \ |
---|
117 | done |
---|
118 | |
---|
119 | install-validations: $(VALIDATEFILES) |
---|
120 | $(MKDIR_P) -m 0755 $(destdir)/validations |
---|
121 | @for i in $(VALIDATEFILES); do \ |
---|
122 | echo "Installing $$i" ; \ |
---|
123 | $(INSTALL) -m 555 $$i $(destdir)/validations ; \ |
---|
124 | done |
---|
125 | |
---|
126 | clean: |
---|
127 | $(RM) tclIndex |
---|
128 | |
---|
129 | distclean: clean |
---|
130 | $(RM) Makefile *~ |
---|