-topdir = .
-srcdir = .
+builddir = builds
-include Makefile.subdir
+.PHONY: _default_build_ all
+_default_build_: all
+all %:
+ @if test -e $(builddir); then \
+ echo cd $(builddir); \
+ cd $(builddir); \
+ echo $(MAKE) $@; \
+ $(MAKE) $@; \
+ else \
+ echo; \
+ echo 'Run configure first, or type "make" in a configured build directory.'; \
+ echo; \
+ fi
libdir = @libdir@
abs_builddir = @abs_builddir@
-.PHONY: _default_build_
+.PHONY: _default_build_ all
_default_build_: all
all:
(cd $(CURRENT_BUILD) && $(MAKE) $@)
- # populate builds/$(CURRENT_BUILD)/bin and builds/$(CURRENT_BUILD)/lib
$(mkinstalldirs) "$(CURRENT_BUILD)$(bindir)" "$(CURRENT_BUILD)$(libdir)"
$(CURRENT_BUILD)/libtool --mode=install install -v $(CURRENT_BUILD)/src/libcvc4.la "$(abs_builddir)$(libdir)"
$(CURRENT_BUILD)/libtool --mode=install install -v $(CURRENT_BUILD)/src/parser/libcvc4parser.la "$(abs_builddir)$(libdir)"
eval "(cd $(CURRENT_BUILD)/src/main && $$relink_command)"
test -e $(CURRENT_BUILD)/lib || ln -sfv "$(abs_builddir)$(libdir)" $(CURRENT_BUILD)/lib
test -e $(CURRENT_BUILD)/bin || ln -sfv "$(abs_builddir)$(bindir)" $(CURRENT_BUILD)/bin
- # populate builds/bin and builds/lib
mkdir -pv ".$(bindir)" ".$(libdir)"
$(CURRENT_BUILD)/libtool --mode=install install -v $(CURRENT_BUILD)/src/libcvc4.la "`pwd`$(libdir)"
$(CURRENT_BUILD)/libtool --mode=install install -v $(CURRENT_BUILD)/src/parser/libcvc4parser.la "`pwd`$(libdir)"
+# -*-makefile-*-
include $(topdir)/builds/current
builddir = $(topdir)/builds/$(CURRENT_BUILD)/$(srcdir)
-.PHONY: _default_build_
+.PHONY: _default_build_ all
_default_build_: all
%:
@if test -e $(builddir); then \
Node asserts;
for(std::vector<Node>::iterator i = d_assertions.begin();
i != d_assertions.end();
- ++i)
+ ++i) {
asserts = asserts.isNull() ? *i : d_em->mkNode(AND, asserts, *i);
+ }
return asserts;
}