lspart
changeset 2:99bb8b4ef1bc tip
added install
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 29 Mar 2013 21:54:33 +0200 |
parents | 3bd9cfd79fc0 |
children | |
files | Makefile |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/Makefile Fri Oct 14 20:41:13 2011 +0300 1.2 +++ b/Makefile Fri Mar 29 21:54:33 2013 +0200 1.3 @@ -1,3 +1,4 @@ 1.4 +PREFIX = /usr/local 1.5 src = $(wildcard *.c) 1.6 obj = $(src:.c=.o) 1.7 bin = lspart 1.8 @@ -11,3 +12,12 @@ 1.9 .PHONY: clean 1.10 clean: 1.11 rm -f $(obj) $(bin) 1.12 + 1.13 +.PHONY: install 1.14 +install: 1.15 + mkdir -p $(DESTDIR)$(PREFIX)/bin 1.16 + cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin) 1.17 + 1.18 +.PHONY: uninstall 1.19 +uninstall: 1.20 + rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)