Commit c840d5ba authored by Vaibhav Gupta's avatar Vaibhav Gupta

software: tools: Makefile: Update recipe for 'install'

Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent 3d1a4453
......@@ -9,12 +9,6 @@
TOP_DIR ?= $(shell pwd)/../..
include $(TOP_DIR)/common.mk
#
# Install variable
#
DESTDIR ?= /usr/local/
BINDIR ?= $(DESTDIR)/bin
TOOLS = spec-firmware-version
#
......@@ -39,9 +33,14 @@ headers:
clean:
rm -f $(TOOLS)
install:
install -d $(BINDIR)
install -D $(TOOLS) $(BINDIR)
DESTDIR ?=
prefix ?= /usr/local
exec_prefix ?= $(prefix)
bindir ?= $(exec_prefix)/bin
install: all
mkdir -m 0775 -p $(DESTDIR)$(bindir)
install -D -t $(DESTDIR)$(bindir) -m 0755 $(TOOLS)
cppcheck:
$(CPPCHECK) -q $(INCLUDE) --suppress=missingIncludeSystem --enable=all *.c *.h --error-exitcode=1
......
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