commit 1ef9e60bd6105d2b2df6ecca3f161c440a8e1467
parent 14b150be1e34f4694e7105aa1f0b5bb046721467
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Fri,  4 Sep 2020 22:07:52 +0200

Add Makefile to install executables

Diffstat:
AMakefile | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,14 @@ +obj = $(basename $(wildcard *.sh) $(wildcard *.py)) +dest = /usr/local/bin + +.PHONY: all + +all: $(patsubst %, $(dest)/%, $(obj)) + +$(dest)/%: %.sh + cp -f $< $@ + chmod 755 $@ + +$(dest)/%: %.py + cp -f $< $@ + chmod 755 $@