Fossil SCM

Merge aku's makefile changes.

drh 2007-08-29 11:51 trunk merge
Commit fad606934c49623defb74e13af98c916ca5f516a
--- src/main.mk
+++ src/main.mk
@@ -168,10 +168,16 @@
168168
makeheaders: $(SRCDIR)/makeheaders.c
169169
$(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
170170
171171
mkindex: $(SRCDIR)/mkindex.c
172172
$(BCC) -o mkindex $(SRCDIR)/mkindex.c
173
+
174
+# WARNING. DANGER. Running the testsuite modifies the repository the
175
+# build is done from, i.e. the checkout belongs to. Do not sync/push
176
+# the repository after running the tests.
177
+test: $(APPNAME)
178
+ $(TCLSH) test/tester.tcl $(APPNAME)
173179
174180
VERSION.h: $(SRCDIR)/../manifest.uuid
175181
awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' $(SRCDIR)/../manifest.uuid >VERSION.h
176182
177183
$(APPNAME): headers $(OBJ) sqlite3.o
178184
--- src/main.mk
+++ src/main.mk
@@ -168,10 +168,16 @@
168 makeheaders: $(SRCDIR)/makeheaders.c
169 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
170
171 mkindex: $(SRCDIR)/mkindex.c
172 $(BCC) -o mkindex $(SRCDIR)/mkindex.c
 
 
 
 
 
 
173
174 VERSION.h: $(SRCDIR)/../manifest.uuid
175 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' $(SRCDIR)/../manifest.uuid >VERSION.h
176
177 $(APPNAME): headers $(OBJ) sqlite3.o
178
--- src/main.mk
+++ src/main.mk
@@ -168,10 +168,16 @@
168 makeheaders: $(SRCDIR)/makeheaders.c
169 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
170
171 mkindex: $(SRCDIR)/mkindex.c
172 $(BCC) -o mkindex $(SRCDIR)/mkindex.c
173
174 # WARNING. DANGER. Running the testsuite modifies the repository the
175 # build is done from, i.e. the checkout belongs to. Do not sync/push
176 # the repository after running the tests.
177 test: $(APPNAME)
178 $(TCLSH) test/tester.tcl $(APPNAME)
179
180 VERSION.h: $(SRCDIR)/../manifest.uuid
181 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' $(SRCDIR)/../manifest.uuid >VERSION.h
182
183 $(APPNAME): headers $(OBJ) sqlite3.o
184
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -101,10 +101,16 @@
101101
makeheaders: $(SRCDIR)/makeheaders.c
102102
$(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
103103
104104
mkindex: $(SRCDIR)/mkindex.c
105105
$(BCC) -o mkindex $(SRCDIR)/mkindex.c
106
+
107
+# WARNING. DANGER. Running the testsuite modifies the repository the
108
+# build is done from, i.e. the checkout belongs to. Do not sync/push
109
+# the repository after running the tests.
110
+test: $(APPNAME)
111
+ $(TCLSH) test/tester.tcl $(APPNAME)
106112
107113
VERSION.h: $(SRCDIR)/../manifest.uuid
108114
awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' \
109115
$(SRCDIR)/../manifest.uuid >VERSION.h
110116
111117
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -101,10 +101,16 @@
101 makeheaders: $(SRCDIR)/makeheaders.c
102 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
103
104 mkindex: $(SRCDIR)/mkindex.c
105 $(BCC) -o mkindex $(SRCDIR)/mkindex.c
 
 
 
 
 
 
106
107 VERSION.h: $(SRCDIR)/../manifest.uuid
108 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' \
109 $(SRCDIR)/../manifest.uuid >VERSION.h
110
111
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -101,10 +101,16 @@
101 makeheaders: $(SRCDIR)/makeheaders.c
102 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
103
104 mkindex: $(SRCDIR)/mkindex.c
105 $(BCC) -o mkindex $(SRCDIR)/mkindex.c
106
107 # WARNING. DANGER. Running the testsuite modifies the repository the
108 # build is done from, i.e. the checkout belongs to. Do not sync/push
109 # the repository after running the tests.
110 test: $(APPNAME)
111 $(TCLSH) test/tester.tcl $(APPNAME)
112
113 VERSION.h: $(SRCDIR)/../manifest.uuid
114 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' \
115 $(SRCDIR)/../manifest.uuid >VERSION.h
116
117

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button