summaryrefslogtreecommitdiff
path: root/icc
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-11-29 20:00:55 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-11-29 20:08:31 +0100
commit2c4537471c932b65e6f72e41881b505c4bbad12c (patch)
tree8bdf47af57b5392f450c2ba56f2b96b3d6520d3b /icc
parentd3c772229cf93ecb1296a67f4ddf5e73afe41b7e (diff)
dont mindlessly touch the icc-header file on every build
- this little gremlin touches the header file everytime it is run - as icc is very low level, this causes a lot of pointless rebuild - everything from vcl up gets relinked - this slows every empty 'make build' down by more than 40 percent - would really need to check if the file changed before writing, but as we rarely change icc itself, I didnt bother with that
Diffstat (limited to 'icc')
-rw-r--r--icc/source/create_sRGB_profile/create_sRGB_profile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
index cceb0c580ba7..2d6b52fea1b8 100644
--- a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
+++ b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp
@@ -474,6 +474,11 @@ int main(int argc, char* argv[])
profile.Write(&out);
out.Close();
+ if(FILE *headerfile_exists = fopen(hxx_file_name,"r"))
+ {
+ fclose(headerfile_exists);
+ exit(0);
+ }
FILE *headerfile = fopen(hxx_file_name,"w");
//print OpenOffice standard file header