distclean-local:
test -z "$(DX_DOCDIR)" || rm -fr "$(DX_DOCDIR)"
+
+# these have .in versions
+DISTCLEANFILES = \
+ doc/cvc4.1 \
+ doc/cvc4.5 \
+ doc/libcvc4.3 \
+ doc/libcvc4compat.3 \
+ doc/libcvc4parser.3
-rmdir "$(DESTDIR)$(includedir)/cvc4/bindings"
-rmdir "$(DESTDIR)$(includedir)/cvc4"
-rmdir "$(DESTDIR)$(libdir)/ocaml/cvc4"
+
+# clean up the .fix files
+mostlyclean-local:
+ (echo include/cvc4.h; \
+ echo include/cvc4_public.h; \
+ echo include/cvc4parser_public.h; \
+ find * -name '*.h.fix' | \
+ xargs grep -l '^# *include *<cvc4/cvc4.*_public\.h>' | \
+ sed 's,\.fix$$,,'; \
+ (cd "$(srcdir)" && find * -name '*.h' | \
+ xargs grep -l '^# *include *"cvc4.*_public\.h"')) | \
+ while read f; do \
+ if expr "$$f" : ".*_\(template\|private\|test_utils\)\.h$$" &>/dev/null; then \
+ continue; \
+ fi; \
+ d="$$(echo "$$f" | sed 's,^include/,,')"; \
+ if [ -e "$$f" ]; then \
+ path="$$f"; \
+ fixpath="$$f.fix"; \
+ else \
+ path="$(srcdir)/$$f"; \
+ fixpath="$(builddir)/$$f.fix"; \
+ $(MKDIR_P) "`dirname "$$fixpath"`"; \
+ fi; \
+ echo rm -f "$$fixpath"; \
+ rm -f "$$fixpath"; \
+ done
+
# pp-regfile.smt \
#
-EXTRA_DIST = $(TESTS)
+EXTRA_DIST = $(TESTS) \
+ aufbv-fuzz01.smt.expect \
+ pp-regfile.delta01.smt.expect \
+ uflia-error0.smt2.expect \
+ bitvec0.delta01.smt.expect \
+ pp-regfile.delta02.smt.expect \
+ uflia-xs-09-16-3-4-1-5.delta03.smt.expect \
+ bitvec0.smt.expect \
+ pp-regfile.smt.expect \
+ uflia-xs-09-16-3-4-1-5.smt.expect \
+ bitvec5.smt.expect \
+ quant-Arrays_Q1-noinfer.smt2.expect \
+ wchains010ue.delta02.smt.expect \
+ bug347.smt.expect \
+ quant-ex1.disable_miniscope.smt2.expect \
+ wchains010ue.smt.expect \
+ just_sat.expect \
+ quant-ex1.smt2.expect \
+ just_unsat.expect \
+ quant-symmetric_unsat_7.smt2.expect
#if CVC4_BUILD_PROFILE_COMPETITION
#else
$(CPLUSPLUS_TESTS:%=%.cpp) \
$(TEST_DEPS_DIST)
+MOSTLYCLEANFILES = $(TESTS)
+
if STATIC_BINARY
system_LINK = $(CXXLINK) -all-static
else
$(UNIT_TESTS:%=%.h) \
$(TEST_DEPS_DIST)
-MOSTLYCLEANFILES = $(UNIT_TESTS) $(UNIT_TESTS:%=%.cpp)
+MOSTLYCLEANFILES = $(UNIT_TESTS) $(UNIT_TESTS:%=%.cpp) $(UNIT_TESTS:%=%.lo)
+
+# the tests automake infrastructure doesn't clean up .o files :-(
+# handle both .libs and _libs variants
+mostlyclean-local:
+ @for f in $(UNIT_TESTS); do \
+ dir="$$(dirname "$$f")"; fil="$$(basename "$$f")"; \
+ for junk in "$$dir/.libs/$$fil.o" \
+ "$$dir/_libs/$$fil.o" \
+ "$$dir/.libs/lt-$$fil" \
+ "$$dir/_libs/lt-$$fil" \
+ "$$dir/.libs/$$fil" \
+ "$$dir/_libs/$$fil"; do \
+ if test -e "$$junk"; then \
+ echo "rm -f \"$$junk\""; \
+ rm -f "$$junk"; \
+ fi; \
+ done; \
+ done
@mk_include@ @srcdir@/Makefile.tests
TS_ASSERT(unnamed.hasAttribute(TestFlag5()));
// test two-arg version of hasAttribute()
- bool bb CVC4_UNUSED;
+ bool bb = false;
Debug("boolattr") << "get flag 1 on a (should be F)\n";
TS_ASSERT(a.getAttribute(TestFlag1(), bb));
TS_ASSERT(! bb);