Makefile_insert revision 04501ee02bf1b06e9cefc79937f1b5586dc4ef6a
## Makefile.am fragment sourced by src/Makefile.am.
#
# Miscellaneous unsystematized and temporary helper utilities
#
# libspchelp - canvas utilities, specific canvas items
#
rm -f helper/libspchelp.a $(helper_libspchelp_a_OBJECTS)
helper/unit-menu.$(OBJEXT): helper/sp-marshal.h
helper_libspchelp_a_SOURCES = \
# cmp exits with status 0 when there are no differences. if executes the commands
# after "then" when the exit status of the if command is 0 (this is crazy).
glib-genmarshal --prefix=sp_marshal --header $(srcdir)/helper/sp-marshal.list > helper/tmp.sp-marshal.h
if cmp -s helper/sp-marshal.h helper/tmp.sp-marshal.h; \
then rm helper/tmp.sp-marshal.h; \
else mv helper/tmp.sp-marshal.h helper/sp-marshal.h; fi
( echo '#include "helper/sp-marshal.h"' && \
glib-genmarshal --prefix=sp_marshal --body $(srcdir)/helper/sp-marshal.list ) \
if cmp -s helper/sp-marshal.cpp helper/tmp.sp-marshal.cpp; \
then rm helper/tmp.sp-marshal.cpp; \
else mv helper/tmp.sp-marshal.cpp helper/sp-marshal.cpp; fi
helper_units_test_SOURCES = helper/units-test.cpp
helper_units_test_LDADD = helper/libspchelp.a -lglib-2.0
# Copy/paste from libnr
$(top_srcdir)/cxxtest/cxxtestgen.pl --template=$(srcdir)/selfname.tpl -root -o helper/test-helper-main.cpp $(helper_test_helper_includes)
helper/test-helper.cpp: $(helper_test_helper_includes)
$(top_srcdir)/cxxtest/cxxtestgen.pl --have-eh -part -o helper/test-helper.cpp $(helper_test_helper_includes)
helper_test_helper_includes = \
$(srcdir)/helper/units-test.h
helper_libtest_helper_a_SOURCES = \
$(helper_test_helper_includes)
helper_test_helper_SOURCES = \
$(helper_test_helper_includes)
helper_test_helper_LDADD = \
-lglib-2.0