* Add support for dynamic GObject types.
* Improved support for overriding interfaces in subclasses.
* New and improved GOB2_CHECK macro.
+ * Expand --no-touch-headers behaviour to include private header.
2.0.20:
* Require glib 2.4, and change use of the _take_ownership functions
PREVENTING SPURIOUS BUILDS.
.TP
.B \-\-no\-touch\-headers
-Don\'t touch the generated header file unless it really changed, this avoids
-spurious rebuilds, but can confuse some make systems (automake in particular),
-so it is not enabled by default. Private header is still touched even if
-unchanged however.
+Don\'t touch any generated header file unless that file really changed.
+This avoids spurious rebuilds, but can confuse some make systems so it is not
+enabled by default.
.TP
.B \-\-always\-private\-header
Always create a \fB<basename>-private.h\fR file, even if it would be empty.
if (file_sep != 0)
sep[0] = file_sep;
outfilephbase = g_strconcat (fullfilebase, sep, "private.h", NULL);
- outfileph = g_strconcat (outfilephbase, no_touch ? "#gob#" : "", NULL);
+ outfileph = g_strconcat (outfilephbase, no_touch_headers ? "#gob#" : "", NULL);
} else {
outfilephbase = NULL;
outfileph = NULL;
}
-
+
if ( ! no_write) {
out = fopen (outfile, "w");
if (out == NULL) {
if (outph)
fclose (outph);
- if (! no_write) {
+ if (!no_write) {
if (no_touch) {
- compare_and_move (outfilebase);
+ compare_and_move(outfilebase);
+ }
+ if (no_touch_headers) {
+ compare_and_move(outfilehbase);
if (outfilephbase)
- compare_and_move (outfilephbase);
+ compare_and_move(outfilephbase);
}
- if (no_touch_headers)
- compare_and_move (outfilehbase);
}
-
+
return 0;
}
}
]])
-m4_if(OPTION, [--no-touch-headers],
-[#Currently, the private header is modified even with --no-touch-headers.
-AT_XFAIL_IF([:])])dnl
-
AT_CHECK([gob2 test.gob])
touch test-c test-h test-private
TEST_MTIME_DELAY