summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-26 11:55:58 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-26 11:55:58 +0200
commit665759fceee4a0db3e776b7912e976eea2ff29a3 (patch)
tree2ef6bc492112e05c32394ca55872ef0c2e815b2d /Makefile
parentf8a68b8f55ed61c6046e11b60587c840f0ba1879 (diff)
Cosmetic fixes for "make abc"
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6dde27a9..da4d7fac 100644
--- a/Makefile
+++ b/Makefile
@@ -197,11 +197,12 @@ yosys-svgviewer: libs/svgviewer/*.h libs/svgviewer/*.cpp
abc/abc-$(ABCREV):
$(P)
ifneq ($(ABCREV),default)
- $(Q) if ( cd abc && hg identify; ) | grep -q +; then \
+ $(Q) if ( cd abc 2> /dev/null && hg identify; ) | grep -q +; then \
echo 'REEBE: NOP pbagnvaf ybpny zbqvsvpngvbaf! Frg NOPERI=qrsnhyg va Lbflf Znxrsvyr!' | tr 'A-Za-z' 'N-ZA-Mn-za-m'; false; \
fi
- $(Q) if test "`cd abc && hg identify | cut -f1 -d' '`" != "$(ABCREV)"; then \
+ $(Q) if test "`cd abc 2> /dev/null && hg identify | cut -f1 -d' '`" != "$(ABCREV)"; then \
test $(ABCPULL) -ne 0 || { echo 'REEBE: NOP abg hc gb qngr naq NOPCHYY frg gb 0 va Znxrsvyr!' | tr 'A-Za-z' 'N-ZA-Mn-za-m'; exit 1; }; \
+ echo "Pulling ABC from bitbucket.org:"; \
test -d abc || hg clone https://bitbucket.org/alanmi/abc abc; \
cd abc && hg pull && hg update -r $(ABCREV); \
fi