Commit 3e1dcab4 authored by Manish Singh's avatar Manish Singh
Browse files

gtk/genmarshal.pl check for unchanged autogenerated files, so we don't

* gtk/genmarshal.pl
* gtk/Makefile.am: check for unchanged autogenerated files, so
we don't rebuild everything just for adding a new function

-Yosh
parent bb0ec697
Tue Nov 17 01:37:53 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/genmarshal.pl
* gtk/Makefile.am: check for unchanged autogenerated files, so
we don't rebuild everything just for adding a new function
Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org> Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkpixmap.h * gtk/gtkpixmap.h
......
Tue Nov 17 01:37:53 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/genmarshal.pl
* gtk/Makefile.am: check for unchanged autogenerated files, so
we don't rebuild everything just for adding a new function
Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org> Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkpixmap.h * gtk/gtkpixmap.h
......
Tue Nov 17 01:37:53 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/genmarshal.pl
* gtk/Makefile.am: check for unchanged autogenerated files, so
we don't rebuild everything just for adding a new function
Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org> Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkpixmap.h * gtk/gtkpixmap.h
......
Tue Nov 17 01:37:53 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/genmarshal.pl
* gtk/Makefile.am: check for unchanged autogenerated files, so
we don't rebuild everything just for adding a new function
Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org> Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkpixmap.h * gtk/gtkpixmap.h
......
Tue Nov 17 01:37:53 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/genmarshal.pl
* gtk/Makefile.am: check for unchanged autogenerated files, so
we don't rebuild everything just for adding a new function
Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org> Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkpixmap.h * gtk/gtkpixmap.h
......
Tue Nov 17 01:37:53 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/genmarshal.pl
* gtk/Makefile.am: check for unchanged autogenerated files, so
we don't rebuild everything just for adding a new function
Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org> Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkpixmap.h * gtk/gtkpixmap.h
......
Tue Nov 17 01:37:53 PST 1998 Manish Singh <yosh@gimp.org>
* gtk/genmarshal.pl
* gtk/Makefile.am: check for unchanged autogenerated files, so
we don't rebuild everything just for adding a new function
Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org> Mon Nov 16 19:19:00 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkpixmap.h * gtk/gtkpixmap.h
......
...@@ -22,3 +22,5 @@ gtktypebuiltins_vars.c ...@@ -22,3 +22,5 @@ gtktypebuiltins_vars.c
gtktypebuiltins_evals.c gtktypebuiltins_evals.c
gtk.defs gtk.defs
testdnd testdnd
stamp-d
stamp-m
...@@ -230,13 +230,14 @@ gtkinclude_HEADERS = \ ...@@ -230,13 +230,14 @@ gtkinclude_HEADERS = \
gtkmarshal.h \ gtkmarshal.h \
gtktypebuiltins.h gtktypebuiltins.h
# note gtk.defs and gtkmarshal.[ch] aren't here, but their stamps are
BUILT_SOURCES = \ BUILT_SOURCES = \
gtktypebuiltins.h \ stamp-d \
gtktypebuiltins_evals.c \ stamp-m \
gtktypebuiltins_ids.c \ gtktypebuiltins.h \
gtktypebuiltins_vars.c \ gtktypebuiltins_evals.c \
gtkmarshal.c \ gtktypebuiltins_ids.c \
gtkmarshal.h gtktypebuiltins_vars.c
# cause the built sources to be rebuild when possible, even with --include-deps # cause the built sources to be rebuild when possible, even with --include-deps
$(static_sources): $(BUILT_SOURCES) $(static_sources): $(BUILT_SOURCES)
...@@ -247,11 +248,14 @@ gdk_headers = \ ...@@ -247,11 +248,14 @@ gdk_headers = \
../gdk/gdkrgb.h ../gdk/gdkrgb.h
# generate gtk.defs file from gtk-boxed.defs and *.h # generate gtk.defs file from gtk-boxed.defs and *.h
gtk.defs: @REBUILD@ makeenums.pl gtk-boxed.defs $(source_headers) $(gdk_headers) gtk.defs: @REBUILD@ stamp-d
@:
stamp-d: @REBUILD@ makeenums.pl gtk-boxed.defs $(source_headers) $(gdk_headers)
cd $(srcdir) \ cd $(srcdir) \
&& $(PERL) makeenums.pl defs $(source_headers) $(gdk_headers) > s-gd \ && $(PERL) makeenums.pl defs $(source_headers) $(gdk_headers) > s-gd \
&& cat gtk-boxed.defs >> s-gd \ && cat gtk-boxed.defs >> s-gd \
&& mv s-gd gtk.defs && (cmp -s s-gd gtk.defs || mv s-gd gtk.defs) && rm -f s-gd \
&& echo timestamp > stamp-d
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS) # generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
gtktypebuiltins.h: @REBUILD@ gtk.defs maketypes.awk gtktypebuiltins.h: @REBUILD@ gtk.defs maketypes.awk
...@@ -278,8 +282,13 @@ gtktypebuiltins_evals.c: @REBUILD@ makeenums.pl gtk.defs ...@@ -278,8 +282,13 @@ gtktypebuiltins_evals.c: @REBUILD@ makeenums.pl gtk.defs
s-gtbe \ s-gtbe \
&& mv s-gtbe gtktypebuiltins_evals.c && mv s-gtbe gtktypebuiltins_evals.c
gtkmarshal.c gtkmarshal.h: @REBUILD@ gtkmarshal.list genmarshal.pl gtkmarshal.c gtkmarshal.h: @REBUILD@ stamp-m
srcdir=$(srcdir) INDENT=$(INDENT) $(PERL) $(srcdir)/genmarshal.pl @:
stamp-m: @REBUILD@ gtkmarshal.list genmarshal.pl
srcdir=$(srcdir) INDENT=$(INDENT) $(PERL) $(srcdir)/genmarshal.pl \
&& (cmp -s s-gmc gtkmarshal.c || mv s-gmc gtkmarshal.c) && rm -f s-gmc \
&& (cmp -s s-gmh gtkmarshal.h || mv s-gmh gtkmarshal.h) && rm -f s-gmh \
&& echo timestamp > stamp-m
libgtk_la_LDFLAGS = \ libgtk_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
......
...@@ -33,8 +33,8 @@ sub indent { ...@@ -33,8 +33,8 @@ sub indent {
} }
open(IL, "<$srcdir/gtkmarshal.list") || die("Open failed: $!"); open(IL, "<$srcdir/gtkmarshal.list") || die("Open failed: $!");
open(OH, ">$srcdir/gtkmarshal.h") || die("Open failed: $!"); open(OH, ">$srcdir/s-gmh") || die("Open failed: $!");
open(OS, ">$srcdir/gtkmarshal.c") || die("Open failed: $!"); open(OS, ">$srcdir/s-gmc") || die("Open failed: $!");
print OH <<EOT; print OH <<EOT;
#ifndef __GTKMARSHAL_H__ #ifndef __GTKMARSHAL_H__
...@@ -201,5 +201,5 @@ EOT ...@@ -201,5 +201,5 @@ EOT
close(IL); close(OH); close(OS); close(IL); close(OH); close(OS);
indent("$srcdir/gtkmarshal.h"); indent("$srcdir/s-gmh");
indent("$srcdir/gtkmarshal.c"); indent("$srcdir/s-gmc");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment