Makefile_insert revision ad45b3a342aa3f5a1fbab4e8072cfb68432ecb29
54d04691a1019ab7c42c1c27b00c61c39b875137Krisink_common_sources += \
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).
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 else mv helper/tmp.sp-marshal.h helper/sp-marshal.h; fi
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 if cmp -s helper/sp-marshal.cpp helper/tmp.sp-marshal.cpp; \
54d04691a1019ab7c42c1c27b00c61c39b875137Kris else mv helper/tmp.sp-marshal.cpp helper/sp-marshal.cpp; fi