diff --git a/src/Makefile.am b/src/Makefile.am
index b1df010747a3802879ac1e936de85eac7e137957..49fad32268df03944a819150f64fe542a20b1423 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
-I$(top_srcdir)/cxxtest \
$(WIN32_CFLAGS)
+# Include all partial makefiles from subdirectories
include Makefile_insert
include application/Makefile_insert
include bind/Makefile_insert
include trace/Makefile_insert
include 2geom/Makefile_insert
+# Executables compiled by "make" and installed by "make install"
bin_PROGRAMS = inkscape inkview
+# Libraries which should be compiled by "make" but not installed
+# Currently we use one library per source directory.
noinst_LIBRARIES = \
libinkpre.a \
application/libinkapp.a \
2geom/lib2geom.a \
libinkpost.a
-check_LIBRARIES = \
- display/libtest-display.a \
- helper/libtest-helper.a \
- libnr/libtest-nr.a \
- svg/libtest-svg.a \
- util/libtest-util.a \
- xml/libtest-xml.a
-
+# Extra files to remove when doing "make distclean"
DISTCLEANFILES = \
helper/sp-marshal.cpp \
helper/sp-marshal.h \
inkscape_version.h
+# Extra files not mentioned as sources to include in the source tarball
EXTRA_DIST = \
Doxyfile \
sp-skeleton.cpp sp-skeleton.h \
inkview \
libnr/testnr
+
+##################################
+### TESTING STUFF (make check) ###
+##################################
+
+# List of all tests to be run. Should contain one per directory.
+# Automake 1.10 appends EXEEXT automatically, so this should be changed
+# when we move to Automake 1.10.
TESTS = \
test-src$(EXEEXT) \
style-test$(EXEEXT) \
xml/quote-test$(EXEEXT) \
xml/repr-action-test$(EXEEXT)
-# As of 2007-01-13, these are failing...
-#XFAIL_TESTS = \
-# test-src$(EXEEXT) \
-# style-test$(EXEEXT)
-
# streamtest is unfinished and can't handle the relocations done during
# "make distcheck". Not needed for the 0.41 release.
# io/streamtest$(EXEEXT)
-
# automake adds $(EXEEXT) to check_PROGRAMS items but not to TESTS items:
# TESTS items can be scripts etc.
+# List of all programs that should be built before testing. Note that this is
+# not necessarily equal to TESTS, because some tests can be scripts that don't
+# need to be built.
check_PROGRAMS = \
test-src \
style-test \
xml/test-xml \
xml/quote-test \
xml/repr-action-test
-
# io/streamtest
-
-test-src.cpp: \
- $(test_src_includes)
- $(top_srcdir)/cxxtest/cxxtestgen.pl --have-eh --template=$(srcdir)/selfname.tpl -root -o test-src.cpp \
- $(test_src_includes)
-
-test_src_SOURCES = \
- test-src.cpp $(test_src_includes)
-
-
-test_src_LDADD = \
- $(all_libs) \
- io/libio.a
-
+# Additional libraries needed by the tests - to be removed later.
+check_LIBRARIES = \
+ display/libtest-display.a \
+ helper/libtest-helper.a \
+ libnr/libtest-nr.a \
+ svg/libtest-svg.a \
+ util/libtest-util.a \
+ xml/libtest-xml.a
# ################################################
#