Makefile (269B) - raw


      1 src = $(wildcard *.sh) $(wildcard *.py)
      2 obj = $(patsubst %,$(dest)/%,$(basename $(src)))
      3 dest = /usr/local/bin
      4 
      5 .PHONY: install uninstall
      6 
      7 install: $(obj)
      8 
      9 $(dest)/%: %.sh
     10 	cp -f $< $@
     11 	chmod 755 $@
     12 
     13 $(dest)/%: %.py
     14 	cp -f $< $@
     15 	chmod 755 $@
     16 
     17 uninstall:
     18 	rm -f $(obj)