Commit ce0abb78 authored by rdubner's avatar rdubner
Browse files

Change 'make install' for ./python/cobcd.py

This is version 2.6.  It was being installed in the wrong place.  Found it because of a Centos package
build test; I was forcing it into usr/local/bin and not looking at DESTDIR.   I am going to hold my
my nose and not change the version code; this is all happening in one day.
parent be86955e
# Code to see if ~/.gdbinit already exists
project=cobcd.py
AUTO_LOAD_FOUND := $(shell grep -s -e "^[ \t]*set auto-load safe-path /" ~/.gdbinit | wc -l)
AUTO_SCRIPTS_FOUND := $(shell grep -s -e "^[ \t]*set auto-load python-scripts on" ~/.gdbinit | wc -l)
......@@ -26,12 +28,9 @@ pregit:
#
.PHONY : install
install :
mkdir -p /usr/local/bin/
cp cobcd.py /usr/local/bin/
ifeq ($(AUTO_LOAD_FOUND), 0)
echo "set auto-load safe-path /" >>~/.gdbinit
endif
ifeq ($(AUTO_SCRIPTS_FOUND), 0)
echo "set auto-load python-scripts on" >>~/.gdbinit
endif
ifdef DESTDIR
mkdir -p $(DESTDIR)/bin/
install $(project) $(DESTDIR)/bin/
else
install $(project) /usr/local/bin/
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