1 ## Makefile.am fragment sourced by src/Makefile.am.
3 #
4 # Miscellaneous unsystematized and temporary helper utilities
5 #
6 # libspchelp - canvas utilities, specific canvas items
7 #
9 helper/all: helper/libspchelp.a
11 helper/clean:
12 rm -f helper/libspchelp.a $(helper_libspchelp_a_OBJECTS)
14 helper/unit-menu.$(OBJEXT): helper/sp-marshal.h
16 helper_libspchelp_a_SOURCES = \
17 helper/action.cpp \
18 helper/action.h \
19 helper/geom.cpp \
20 helper/geom.h \
21 helper/geom-curves.h \
22 helper/geom-nodetype.cpp \
23 helper/geom-nodetype.h \
24 helper/gnome-utils.cpp \
25 helper/gnome-utils.h \
26 helper/helper-forward.h \
27 helper/png-write.cpp \
28 helper/png-write.h \
29 helper/recthull.h \
30 helper/sp-marshal.cpp \
31 helper/sp-marshal.h \
32 helper/stlport.h \
33 helper/unit-menu.cpp \
34 helper/unit-menu.h \
35 helper/unit-tracker.cpp \
36 helper/unit-tracker.h \
37 helper/units.cpp \
38 helper/units.h \
39 helper/window.cpp \
40 helper/window.h \
41 helper/stock-items.cpp \
42 helper/stock-items.h
44 # cmp exits with status 0 when there are no differences. "if" executes the commands
45 # after "then" when the exit status of the if command is 0 (this is crazy).
46 helper/sp-marshal.h: helper/sp-marshal.list
47 glib-genmarshal --prefix=sp_marshal --header $(srcdir)/helper/sp-marshal.list > helper/tmp.sp-marshal.h
48 if cmp -s helper/sp-marshal.h helper/tmp.sp-marshal.h; \
49 then rm helper/tmp.sp-marshal.h; \
50 else mv helper/tmp.sp-marshal.h helper/sp-marshal.h; fi
52 helper/sp-marshal.cpp: helper/sp-marshal.list helper/sp-marshal.h
53 ( echo '#include "helper/sp-marshal.h"' && \
54 glib-genmarshal --prefix=sp_marshal --body $(srcdir)/helper/sp-marshal.list ) \
55 > helper/tmp.sp-marshal.cpp; \
56 if cmp -s helper/sp-marshal.cpp helper/tmp.sp-marshal.cpp; \
57 then rm helper/tmp.sp-marshal.cpp; \
58 else mv helper/tmp.sp-marshal.cpp helper/sp-marshal.cpp; fi
60 helper/sp-marshal.cpp helper/sp-marshal.h: helper/sp-marshal.list
62 # ######################
63 # ### CxxTest stuff ####
64 # ######################
65 CXXTEST_TESTSUITES += \
66 $(srcdir)/helper/units-test.h