Commit 247a3a3a authored by Vaibhav Gupta's avatar Vaibhav Gupta

software: tools: Makefile: Add target 'install'

Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent c2a78e35
......@@ -12,8 +12,6 @@ REPO_PARENT ?= ../..
-include $(REPO_PARENT)/parent_common.mk
# user-space tools for spec-fine-delay
DESTDIR ?= /usr/local
GIT_VERSION := $(shell git describe --dirty --long --tags)
CFLAGS += -I../kernel -Wno-trigraphs -Wall -Werror -ggdb -O2 $(EXTRACFLAGS)
CFLAGS += -DGIT_VERSION="\"$(GIT_VERSION)\""
......@@ -36,9 +34,16 @@ clean:
# make nothing for modules_install, but avoid errors
modules_install:
install:
install -d $(DESTDIR)/bin
install -D $(progs) $(DESTDIR)/bin
DESTDIR ?=
prefix ?= /usr/local
exec_prefix ?= $(prefix)
bindir ?= $(exec_prefix)/bin
includedir ?= $(prefix)/include
install: all
mkdir -m 0775 -p $(DESTDIR)$(bindir) $(DESTDIR)$(includedir)/fmc-adc
install -D -t $(DESTDIR)$(bindir) -m 0755 $(progs)
install -D -t $(DESTDIR)$(includedir)/fmc-adc -m 0644 ../kernel/fmc-adc-100m14b4cha.h
# we need this as we are out of the kernel
%: %.c
......
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