combjs

diff Makefile @ 1:dd02002227a2

- added a few commandline arguments to combjs - trying to make a gui frontend
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 14 Jul 2011 15:40:20 +0300
parents 15293518d92b
children
line diff
     1.1 --- a/Makefile	Wed Jul 13 07:12:57 2011 +0300
     1.2 +++ b/Makefile	Thu Jul 14 15:40:20 2011 +0300
     1.3 @@ -1,3 +1,5 @@
     1.4 +PREFIX = /usr/local
     1.5 +
     1.6  src = $(wildcard *.c)
     1.7  obj = $(src:.c=.o)
     1.8  bin = combjs
     1.9 @@ -11,3 +13,14 @@
    1.10  .PHONY: clean
    1.11  clean:
    1.12  	rm -f $(obj) $(bin)
    1.13 +
    1.14 +.PHONY: install
    1.15 +install: $(bin)
    1.16 +	mkdir -p $(PREFIX)/bin
    1.17 +	cp $(bin) $(PREFIX)/bin/$(bin)
    1.18 +	chown root $(PREFIX)/bin/$(bin)
    1.19 +	chmod 4775 $(PREFIX)/bin/$(bin)
    1.20 +
    1.21 +.PHONY: uninstall
    1.22 +uninstall:
    1.23 +	rm -f $(PREFIX)/bin/$(bin)