From 3e24f572860bb4731a349efdb7170594ff90c5fb Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 12 Aug 2011 01:02:23 +0000 Subject: [PATCH] Fix out of tree build of tests --- samltest/Makefile.am | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/samltest/Makefile.am b/samltest/Makefile.am index 167e7ca..0dc3ee6 100644 --- a/samltest/Makefile.am +++ b/samltest/Makefile.am @@ -98,16 +98,19 @@ samltest_h = \ saml2/profile/SAML2PolicyTest.h noinst_HEADERS = \ - binding.h \ + binding.h \ internal.h \ - signature/SAMLSignatureTestBase.h + signature/SAMLSignatureTestBase.h \ + $(samltest_h) nodist_samltest_SOURCES = $(samltest_h:.h=.cpp) +BUILT_SOURCES = $(nodist_samltest_SOURCES) + CLEANFILES = $(nodist_samltest_SOURCES) do-cxxtestgen: - if test $(HFILE) = "samltest.h"; then \ + if test "$(CPPFILE)" = "samltest.cpp"; then \ $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \ else \ $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \ @@ -118,4 +121,4 @@ $(nodist_samltest_SOURCES): %.cpp: %.h samltest_LDADD = $(top_builddir)/saml/libsaml.la -EXTRA_DIST = samltest.vcxproj samltest.vcxproj.filters $(samltest_h) data +EXTRA_DIST = samltest.vcxproj samltest.vcxproj.filters data -- 2.1.4