mirror of https://github.com/YosysHQ/yosys.git
Added "make config-sudo"
This commit is contained in:
parent
0c91f890c9
commit
a1353ec61b
16
Makefile
16
Makefile
|
@ -8,7 +8,8 @@ ENABLE_QT4 := 1
|
||||||
ENABLE_MINISAT := 1
|
ENABLE_MINISAT := 1
|
||||||
ENABLE_GPROF := 0
|
ENABLE_GPROF := 0
|
||||||
|
|
||||||
DESTDIR = /usr/local
|
DESTDIR := /usr/local
|
||||||
|
INSTALL_SUDO :=
|
||||||
|
|
||||||
OBJS =
|
OBJS =
|
||||||
GENFILES =
|
GENFILES =
|
||||||
|
@ -112,13 +113,13 @@ test: yosys
|
||||||
cd tests/asicworld && bash run-test.sh
|
cd tests/asicworld && bash run-test.sh
|
||||||
|
|
||||||
install: $(TARGETS)
|
install: $(TARGETS)
|
||||||
mkdir -p $(DESTDIR)/bin
|
$(INSTALL_SUDO) mkdir -p $(DESTDIR)/bin
|
||||||
install $(TARGETS) $(DESTDIR)/bin/
|
$(INSTALL_SUDO) install $(TARGETS) $(DESTDIR)/bin/
|
||||||
mkdir -p $(DESTDIR)/share/yosys
|
$(INSTALL_SUDO) mkdir -p $(DESTDIR)/share/yosys
|
||||||
cp -r share/. $(DESTDIR)/share/yosys/.
|
$(INSTALL_SUDO) cp -r share/. $(DESTDIR)/share/yosys/.
|
||||||
|
|
||||||
install-abc:
|
install-abc:
|
||||||
install yosys-abc $(DESTDIR)/bin/
|
$(INSTALL_SUDO) install yosys-abc $(DESTDIR)/bin/
|
||||||
|
|
||||||
manual:
|
manual:
|
||||||
cd manual && bash make.sh
|
cd manual && bash make.sh
|
||||||
|
@ -157,6 +158,9 @@ config-gprof: clean
|
||||||
echo 'CONFIG := release' > Makefile.conf
|
echo 'CONFIG := release' > Makefile.conf
|
||||||
echo 'ENABLE_GPROF := 1' >> Makefile.conf
|
echo 'ENABLE_GPROF := 1' >> Makefile.conf
|
||||||
|
|
||||||
|
config-sudo:
|
||||||
|
echo "INSTALL_SUDO := sudo" >> Makefile.conf
|
||||||
|
|
||||||
-include libs/*/*.d
|
-include libs/*/*.d
|
||||||
-include frontends/*/*.d
|
-include frontends/*/*.d
|
||||||
-include passes/*/*.d
|
-include passes/*/*.d
|
||||||
|
|
Loading…
Reference in New Issue