1 ## Makefile.am fragment sourced by src/Makefile.am.
3 helper/unit-menu.$(OBJEXT): helper/sp-marshal.h
5 ink_common_sources += \
6 helper/action.cpp \
7 helper/action.h \
8 helper/geom.cpp \
9 helper/geom.h \
10 helper/geom-curves.h \
11 helper/geom-nodetype.cpp \
12 helper/geom-nodetype.h \
13 helper/gnome-utils.cpp \
14 helper/gnome-utils.h \
15 helper/helper-forward.h \
16 helper/png-write.cpp \
17 helper/png-write.h \
18 helper/recthull.h \
19 helper/sp-marshal.cpp \
20 helper/sp-marshal.h \
21 helper/stlport.h \
22 helper/unit-menu.cpp \
23 helper/unit-menu.h \
24 helper/unit-tracker.cpp \
25 helper/unit-tracker.h \
26 helper/units.cpp \
27 helper/units.h \
28 helper/window.cpp \
29 helper/window.h \
30 helper/stock-items.cpp \
31 helper/stock-items.h
33 # cmp exits with status 0 when there are no differences. "if" executes the commands
34 # after "then" when the exit status of the if command is 0 (this is crazy).
35 helper/sp-marshal.h: helper/sp-marshal.list
36 glib-genmarshal --prefix=sp_marshal --header $(srcdir)/helper/sp-marshal.list > helper/tmp.sp-marshal.h
37 if cmp -s helper/sp-marshal.h helper/tmp.sp-marshal.h; \
38 then rm helper/tmp.sp-marshal.h; \
39 else mv helper/tmp.sp-marshal.h helper/sp-marshal.h; fi
41 helper/sp-marshal.cpp: helper/sp-marshal.list helper/sp-marshal.h
42 ( echo '#include "helper/sp-marshal.h"' && \
43 glib-genmarshal --prefix=sp_marshal --body $(srcdir)/helper/sp-marshal.list ) \
44 > helper/tmp.sp-marshal.cpp; \
45 if cmp -s helper/sp-marshal.cpp helper/tmp.sp-marshal.cpp; \
46 then rm helper/tmp.sp-marshal.cpp; \
47 else mv helper/tmp.sp-marshal.cpp helper/sp-marshal.cpp; fi
49 helper/sp-marshal.cpp helper/sp-marshal.h: helper/sp-marshal.list
51 # ######################
52 # ### CxxTest stuff ####
53 # ######################
54 CXXTEST_TESTSUITES += \
55 $(srcdir)/helper/units-test.h