diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-07-27 22:40:45 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-07-27 22:40:45 +0200 |
commit | 83a24ddc444a90bca9697c0c2f057c84dc24e1b4 (patch) | |
tree | 415b989395889471fd416f7c652323d2c7901039 /iceprog/Makefile | |
parent | 53d4a0be53776cb2cbc83d9bd245935594eb37f4 (diff) | |
download | icestorm-83a24ddc444a90bca9697c0c2f057c84dc24e1b4.tar.gz icestorm-83a24ddc444a90bca9697c0c2f057c84dc24e1b4.tar.bz2 icestorm-83a24ddc444a90bca9697c0c2f057c84dc24e1b4.zip |
Define and use DESTDIR for installation (by Larry Doolittle)
Diffstat (limited to 'iceprog/Makefile')
-rw-r--r-- | iceprog/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/iceprog/Makefile b/iceprog/Makefile index b0d735a..86c69f4 100644 --- a/iceprog/Makefile +++ b/iceprog/Makefile @@ -1,16 +1,17 @@ # CC = clang LDLIBS = -lftdi -lm CFLAGS = -MD -O0 -ggdb -Wall -std=c99 +DESTDIR = /usr/local all: iceprog iceprog: iceprog.o install: all - cp iceprog /usr/local/bin/iceprog + cp iceprog $(DESTDIR)/bin/iceprog uninstall: - rm -f /usr/local/bin/iceprog + rm -f $(DESTDIR)/bin/iceprog clean: rm -f iceprog |