summaryrefslogtreecommitdiff
path: root/atk/Makefile.am
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-06-07 20:38:07 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-06-07 20:38:07 +0000
commiteda68be2987a1d393b1e42ed2cadd9cdb079a27d (patch)
tree45d7c4a9ecddae3eec921876f844303fb706ee37 /atk/Makefile.am
parentcdca5df66ffc95ce6451f8e9b989b557a7d83a46 (diff)
downloadatk-eda68be2987a1d393b1e42ed2cadd9cdb079a27d.tar.gz
fix up the glib-genmarshal stuff
2001-06-07 Havoc Pennington <hp@redhat.com> * atk/Makefile.am ($(srcdir)/atkmarshal.c): fix up the glib-genmarshal stuff
Diffstat (limited to 'atk/Makefile.am')
-rw-r--r--atk/Makefile.am26
1 files changed, 16 insertions, 10 deletions
diff --git a/atk/Makefile.am b/atk/Makefile.am
index f882687..d0acc10 100644
--- a/atk/Makefile.am
+++ b/atk/Makefile.am
@@ -69,16 +69,22 @@ atk.defs atkmarshal.h : # never add deps here
test -f "$(srcdir)/$@" || touch $(srcdir)/$@
$(srcdir)/stamp-atkmarshal.h: @REBUILD@ atkmarshal.list atkmarshal.h
- cwd=`pwd` \
- && cd $(srcdir) \
- && $$cwd/@GLIB_GENMARSHAL@ --prefix=atk_marshal atkmarshal.list --header >> xgen-gmh \
- && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
- && rm -f xgen-gmh xgen-gmh~ \
+ case @GLIB_GENMARSHAL@ in \
+ /*) glib_genmarshal=@GLIB_GENMARSHAL@ ;; \
+ *) glib_genmarshal=`cd $(top_builddir) && pwd`/@GLIB_GENMARSHAL@ ;; \
+ esac; \
+ cd $(srcdir) \
+ && $$glib_genmarshal --prefix=atk_marshal atkmarshal.list --header >> xgen-gmh \
+ && (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
+ && rm -f xgen-gmh xgen-gmh~ \
&& echo timestamp > $(@F)
+
$(srcdir)/atkmarshal.c: @REBUILD@ $(srcdir)/stamp-atkmarshal.h
- cwd=`pwd` \
- && cd $(srcdir) \
- && $$cwd/@GLIB_GENMARSHAL@ --prefix=atk_marshal atkmarshal.list --body >> xgen-gmc \
- && cp xgen-gmc atkmarshal.c \
+ case @GLIB_GENMARSHAL@ in \
+ /*) glib_genmarshal=@GLIB_GENMARSHAL@ ;; \
+ *) glib_genmarshal=`cd $(top_builddir) && pwd`/@GLIB_GENMARSHAL@ ;; \
+ esac; \
+ cd $(srcdir) \
+ && $$glib_genmarshal --prefix=atk_marshal atkmarshal.list --body >> xgen-gmc \
+ && cp xgen-gmc atkmarshal.c \
&& rm -f xgen-gmc xgen-gmc~
-