X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=pyfrprog.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=9f3c3b96381389bd8caf1c5459528ef21311aad0;hp=d49406d2fea9af93bc091203fdfc4a9d3c10f858;hb=5b1e050a0c5d3fc992a0a29f55f2826aad135353;hpb=aa7ae00606beffecc4e058868a81c76a6872110d diff --git a/Makefile b/Makefile index d49406d..9f3c3b9 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,21 @@ +PREFIX = /usr + all: make -C pkernel/ + +#install: all #this just work when $FUJDEV is set for root too, eh? +install: + sed -e 's/%PREFIX%/\$(PREFIX)/g' frprog.py > $(PREFIX)/bin/frprog + cp SerialPort_linux.pyc $(PREFIX)/bin/SerialPort_linux.pyc + mkdir -p $(PREFIX)/share/frprog/ + cp pkernel/pkernel.mhx $(PREFIX)/share/frprog/pkernel.mhx + chmod a+rx $(PREFIX)/bin/frprog + chmod a+r $(PREFIX)/bin/SerialPort_linux.pyc + chmod a+r $(PREFIX)/share/frprog/pkernel.mhx + +uninstall: + rm -R $(PREFIX)/share/frprog + rm $(PREFIX)/bin/frprog + rm $(PREFIX)/bin/SerialPort_linux.pyc + +.PHONY: uninstall