diff options
author | Raja R Harinath <harinath@src.gnome.org> | 1999-03-29 00:02:37 +0000 |
---|---|---|
committer | Raja R Harinath <harinath@src.gnome.org> | 1999-03-29 00:02:37 +0000 |
commit | 44714ea8382e37e48f68cc4660c198735a87963c (patch) | |
tree | aeea2dd31303eb9519fffef07a05986ee86a7123 /Makefile.am | |
parent | 74ba3d4d403f1b3470ff99970119dc775f34ea6c (diff) | |
download | glib-44714ea8382e37e48f68cc4660c198735a87963c.tar.gz |
Make sure `glibconfig.h' exists after the rule is fired.
* Makefile.am (glibconfig.h): Make sure `glibconfig.h' exists
after the rule is fired.
(install-exec-local): Install glibconfig.h only if the contents
are different from the currently installed glibconfig.h.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index 312385067..bbcb360b9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,8 +4,6 @@ AUTOMAKE_OPTIONS = 1.4 SUBDIRS = . gmodule gthread docs tests -configexecincludedir = $(pkglibdir)/include - bin_SCRIPTS=glib-config BUILT_SOURCES=glib-config glib-config: glib-config.in @@ -58,14 +56,21 @@ libglib_la_SOURCES = \ include_HEADERS = \ glib.h -configexecinclude_DATA = \ - glibconfig.h +configexecincludedir = $(pkglibdir)/include +#configexecinclude_DATA = glibconfig.h + +install-exec-local: glibconfig.h + $(mkinstalldirs) $(DESTDIR)$(configexecincludedir) + file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \ + if test -r $$file && cmp -s glibconfig.h $$file; then :; \ + else $(INSTALL_DATA) glibconfig.h $$file; fi configure: configure.in acglib.m4 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h glibconfig.h: stamp-gc-h - @: + @if test -f glibconfig.h; then :; \ + else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi stamp-gc-h: config.status CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status echo timestamp > stamp-gc-h |