Commit afc2a32e authored by Federico Vaga's avatar Federico Vaga

sw: add Makefile targets to (un)install headers

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent d69803ad
......@@ -5,11 +5,11 @@ CURDIR:=$(shell /bin/pwd)
REPO_PARENT ?= $(CURDIR)/..
-include $(REPO_PARENT)/parent_common.mk
DIRS = kernel lib tools include/mockturtle/hw
DIRS = kernel lib tools include
all clean modules install modules_install: $(DIRS)
headers: include/mockturtle/hw
headers: include
kernel lib: headers
tools: lib
......
PREFIX ?= /usr/local/
INCLUDEDESTDIR ?= $(PREFIX)/include
all:
$(MAKE) -C mockturtle/hw
clean:
$(MAKE) -C mockturtle/hw clean
install: all
install -d $(INCLUDEDESTDIR)/mockturtle
install -D mockturtle/*.h $(INCLUDEDESTDIR)/mockturtle
install -d $(INCLUDEDESTDIR)/mockturtle/hw
install -D mockturtle/hw/*.h $(INCLUDEDESTDIR)/mockturtle/hw
uninstall:
rm -f $(INCLUDEDESTDIR)/mockturtle/hw/*
rmdir --ignore-fail-on-non-empty $(INCLUDEDESTDIR)/mockturtle/hw
rm -f $(INCLUDEDESTDIR)/mockturtle/*
rmdir --ignore-fail-on-non-empty $(INCLUDEDESTDIR)/mockturtle
rmdir --ignore-fail-on-non-empty $(INCLUDEDESTDIR)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment