Makefile_insert revision ad45b3a342aa3f5a1fbab4e8072cfb68432ecb29
54d04691a1019ab7c42c1c27b00c61c39b875137Kris## Makefile.am fragment sourced by src/Makefile.am.
54d04691a1019ab7c42c1c27b00c61c39b875137Kris
54d04691a1019ab7c42c1c27b00c61c39b875137Krishelper/unit-menu.$(OBJEXT): helper/sp-marshal.h
a50f3ec72864d97bed2b9b98d3d6df976008002aKris
54d04691a1019ab7c42c1c27b00c61c39b875137Krisink_common_sources += \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/action.cpp \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/action.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/action-context.cpp \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/action-context.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/geom.cpp \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/geom.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/geom-curves.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/geom-nodetype.cpp \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/geom-nodetype.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/gnome-utils.cpp \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/gnome-utils.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/mathfns.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/png-write.cpp \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/png-write.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/sp-marshal.cpp \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/sp-marshal.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/window.cpp \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/window.h \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/stock-items.cpp \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris helper/stock-items.h
54d04691a1019ab7c42c1c27b00c61c39b875137Kris
54d04691a1019ab7c42c1c27b00c61c39b875137Kris# cmp exits with status 0 when there are no differences. "if" executes the commands
54d04691a1019ab7c42c1c27b00c61c39b875137Kris# after "then" when the exit status of the if command is 0 (this is crazy).
54d04691a1019ab7c42c1c27b00c61c39b875137Krishelper/sp-marshal.h: helper/sp-marshal.list
54d04691a1019ab7c42c1c27b00c61c39b875137Kris glib-genmarshal --prefix=sp_marshal --header $(srcdir)/helper/sp-marshal.list > helper/tmp.sp-marshal.h
54d04691a1019ab7c42c1c27b00c61c39b875137Kris if cmp -s helper/sp-marshal.h helper/tmp.sp-marshal.h; \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris then rm helper/tmp.sp-marshal.h; \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris else mv helper/tmp.sp-marshal.h helper/sp-marshal.h; fi
54d04691a1019ab7c42c1c27b00c61c39b875137Kris
54d04691a1019ab7c42c1c27b00c61c39b875137Krishelper/sp-marshal.cpp: helper/sp-marshal.list helper/sp-marshal.h
54d04691a1019ab7c42c1c27b00c61c39b875137Kris ( echo '#include "helper/sp-marshal.h"' && \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris glib-genmarshal --prefix=sp_marshal --body $(srcdir)/helper/sp-marshal.list ) \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris > helper/tmp.sp-marshal.cpp; \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris if cmp -s helper/sp-marshal.cpp helper/tmp.sp-marshal.cpp; \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris then rm helper/tmp.sp-marshal.cpp; \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris else mv helper/tmp.sp-marshal.cpp helper/sp-marshal.cpp; fi
54d04691a1019ab7c42c1c27b00c61c39b875137Kris
54d04691a1019ab7c42c1c27b00c61c39b875137Krishelper/sp-marshal.cpp helper/sp-marshal.h: helper/sp-marshal.list
54d04691a1019ab7c42c1c27b00c61c39b875137Kris