tools: added INSTALL cmake command

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2020-05-21 13:58:45 +02:00
parent 12bf76f897
commit 60d0ec4372
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,8 @@
SHELL = bash
ALL_EXCLUDE = third_party .git env build docs/env
INSTALL_DIR ?=
# Check if root
ifeq ($(shell id -u),0)
$(error ERROR: Running as ID 0)
@ -35,6 +37,9 @@ build:
mkdir -p build
cd build; cmake ..; $(MAKE)
install:
cd build; $(MAKE) DESTDIR=${INSTALL_DIR} install
.PHONY: env build
# Run tests of code.

View File

@ -33,3 +33,5 @@ target_link_libraries(xc7frames2bit
gflags
libprjxray
)
install(TARGETS xc7frames2bit xc7patch gen_part_base_yaml frame_address_decoder bittool segmatch bitread DESTINATION bin)