Commit b9ea64f5 authored by Vaibhav Gupta's avatar Vaibhav Gupta

software: include: Makefile: Update 'install' recipe

Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent fecaaf6c
......@@ -24,10 +24,14 @@ headers: uapi/linux/spec-core-fpga.h
uapi/linux/spec-core-fpga.h:
$(CHEBY) --gen-c -i $(HDL_DIR)/rtl/spec_base_regs.cheby > $@
DESTDIR ?=
prefix ?= /usr/local
includedir ?= $(prefix)/include
install: headers
install -d $(HDRDIR)/linux
install -D uapi/linux/spec.h $(HDRDIR)/linux
install -D uapi/linux/spec-core-fpga.h $(HDRDIR)/linux
mkdir -m 0775 -p $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)/linux
install -D -t $(DESTDIR)$(includedir)/linux -m 0644 uapi/linux/spec.h
install -D -t $(DESTDIR)$(includedir)/linux -m 0644 uapi/linux/spec-core-fpga.h
clean:
rm -f uapi/linux/spec-core-fpga.h
......
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