aboutsummaryrefslogtreecommitdiff
path: root/share/autoinclude
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-04-07 15:25:44 +0000
committerMike Buland <eichlan@xagasoft.com>2011-04-07 15:25:44 +0000
commit4a008047988954e8ab80c74ab18f4e7b2ba4d478 (patch)
tree0bab402e9ea0316c32f192c84ea53c49f8847337 /share/autoinclude
parentcfc2ab9cff9f7ef281293efeeb8cdbe1e03ac499 (diff)
downloadbuild-4a008047988954e8ab80c74ab18f4e7b2ba4d478.tar.gz
build-4a008047988954e8ab80c74ab18f4e7b2ba4d478.tar.bz2
build-4a008047988954e8ab80c74ab18f4e7b2ba4d478.tar.xz
build-4a008047988954e8ab80c74ab18f4e7b2ba4d478.zip
Two minor changes, first off the c and cpp requires rules both ignore missing
files and treat them as inputs that we just haven't generated yet. I think this is a better assumption overall and will prevent most files from dying on deps. Second, a change to the qt4 include overrides the normal exe rule and substitutes one that also includes all .h files in it's inputs, only to ignore them in the build profile at the last second. This means that all generated .h files will also be deleted. It's the best solution until I figure out a way to fix this in the build core.
Diffstat (limited to '')
-rw-r--r--share/autoinclude/general-rules.bld4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/autoinclude/general-rules.bld b/share/autoinclude/general-rules.bld
index 0e6c735..d568e11 100644
--- a/share/autoinclude/general-rules.bld
+++ b/share/autoinclude/general-rules.bld
@@ -86,7 +86,7 @@ rule "cpp"
86{ 86{
87 input "*.cpp"; 87 input "*.cpp";
88 output INPUT.cppToObj(); 88 output INPUT.cppToObj();
89 requires getMakeDeps("${CXX} ${CXXFLAGS} -M ${INPUT}"); 89 requires getMakeDeps("${CXX} ${CXXFLAGS} -M -MG ${INPUT}");
90 profile "build" 90 profile "build"
91 { 91 {
92 execute("${CXX} ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}", "g++"); 92 execute("${CXX} ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}", "g++");
@@ -98,7 +98,7 @@ rule "c"
98{ 98{
99 input "*.c"; 99 input "*.c";
100 output INPUT.cToObj(); 100 output INPUT.cToObj();
101 requires getMakeDeps("${CC} ${CFLAGS} -M ${INPUT}"); 101 requires getMakeDeps("${CC} ${CFLAGS} -M -MG ${INPUT}");
102 profile "build" 102 profile "build"
103 { 103 {
104 execute("${CC} ${CFLAGS} -c -o ${OUTPUT} ${INPUT}"); 104 execute("${CC} ${CFLAGS} -c -o ${OUTPUT} ${INPUT}");