From: Clifford Wolf Date: Wed, 13 Nov 2013 14:49:42 +0000 (+0100) Subject: Improved building of yosys-abc X-Git-Tag: yosys-0.2.0~369 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3345bd3b40a32aef80ae2920183c5f2fea02b21;p=yosys.git Improved building of yosys-abc --- diff --git a/Makefile b/Makefile index 9fdd8cfb4..a92c65257 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ GIT_REV := $(shell git rev-parse --short HEAD || echo UNKOWN) OBJS = kernel/version_$(GIT_REV).o ABCREV = 0f9e5488ced3 +ABCHGPULL = 1 -include Makefile.conf @@ -97,8 +98,11 @@ yosys-svgviewer: libs/svgviewer/*.h libs/svgviewer/*.cpp cp libs/svgviewer/svgviewer yosys-svgviewer abc: +ifeq ($(ABCHGPULL),1) test -d abc || hg clone https://bitbucket.org/alanmi/abc abc - cd abc && hg pull && hg update -r $(ABCREV) && make + cd abc && hg pull && hg update -r $(ABCREV) +endif + cd abc && $(MAKE) cp abc/abc yosys-abc test: yosys