Makefile 946 Bytes
Newer Older
1 2
# Code to see if ~/.gdbinit already exists

3 4
project=cobcd.py

5
prefix ?=/usr/local
6

7
.PHONY: all
8 9 10
all : cobcd.py

cobcd.py : ../include/version.h
11
## Make sure the VERSION text in cobcd.py is up-to-date
12
	../bin/version-replace.sh $@ $^
13 14 15

.PHONY: pregit
pregit:
16
	dos2unix cobcd.py
17 18 19
	dos2unix Makefile
	dos2unix .gitignore

20
#
21
# As of this writing, cobcd.py is being embedded into the COBOL executables.
22 23 24
# By default, gdb doesn't put the current working directory onto the list 
# of safe auto-load directories.  There is a default safe directory, but that
# directory isn't on the search path.  So, one way or the other, the user's 
25
# .gdbinit file has to be modified.	 I personally have chosen to defeat the default 
26 27
# security setting to allow auto-load from anywhere.
#
28 29
.PHONY : install
install :
30 31
	mkdir -p $(DESTDIR)$(prefix)/bin/
	install $(project) $(DESTDIR)$(prefix)/bin/
32

33 34
.PHONY : uninstall
uninstall :
35
	rm -f $(DESTDIR)$(prefix)/bin/$(project)