]> www.fi.muni.cz Git - evince.git/blobdiff - cut-n-paste/toolbar-editor/Makefile.am
Release 0.3.1
[evince.git] / cut-n-paste / toolbar-editor / Makefile.am
index 5a9b233892013837dd06bb656fe032fa06b0a5d3..a2e5c462d090a9f1c680941af5b0f041f8f56557 100644 (file)
@@ -2,32 +2,29 @@
 INCLUDES = $(TOOLBAR_EDITOR_CFLAGS) \
        -DCURSOR_DIR=\"$(pkgdatadir)\" 
 
-BUILT_SOURCES = eggmarshalers.c eggmarshalers.h
-
 noinst_LTLIBRARIES = libtoolbareditor.la
 
 libtoolbareditor_la_SOURCES =  \
        egg-toolbars-model.c            \
        egg-editable-toolbar.c          \
        egg-toolbar-editor.c            \
-       egg-marshal.c   
+       egg-marshal.c                   \
+       eggmarshalers.c 
 
 noinst_HEADERS =                       \
        egg-toolbars-model.h            \
        egg-editable-toolbar.h          \
-       egg-toolbar-editor.h            
+       egg-toolbar-editor.h            \
+       eggmarshalers.h
+
+BUILT_SOURCES = eggmarshalers.h eggmarshalers.c
 
 eggmarshalers.h: eggmarshalers.list
-       cd $(srcdir) \
-       && $(GLIB_GENMARSHAL) --prefix=_egg_marshal eggmarshalers.list --header > xgen-emh \
-       && cp xgen-emh eggmarshalers.h \
-       && rm -f xgen-emh xgen-emh~
+       $(GLIB_GENMARSHAL) --prefix=_egg_marshal $(srcdir)/eggmarshalers.list --header > eggmarshalers.h
 
 eggmarshalers.c: eggmarshalers.list
-       cd $(srcdir) \
-       && $(GLIB_GENMARSHAL) --prefix=_egg_marshal eggmarshalers.list --body > xgen-emc \
-       && cp xgen-emc eggmarshalers.c \
-       && rm -f xgen-emc xgen-emc~
+       echo '#include "eggmarshalers.h"' > eggmarshalers.c
+       $(GLIB_GENMARSHAL) --prefix=_egg_marshal $(srcdir)/eggmarshalers.list --body >> eggmarshalers.c
 
 egg-marshal.c: eggmarshalers.c eggmarshalers.h