From: Siraaj Khandkar Date: Wed, 29 Aug 2018 21:33:12 +0000 (-0400) Subject: Move install script to make X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=3ad4dbbb5749882df5ab4c4596bb9743a5b2f736;p=khatus.git Move install script to make --- diff --git a/Makefile b/Makefile index c741acf..c63c61e 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +PREFIX := $(HOME) PATH_TO_AWK := /usr/bin/awk AWK_EXECUTABLES := \ bin/khatus_bar \ @@ -31,10 +32,14 @@ endef .PHONY: \ build \ + install \ clean build: $(AWK_EXECUTABLES) +install: + $(foreach filename,$(wildcard bin/*),cp -p "$(filename)" "$(PREFIX)/$(filename)"; ) + clean: rm -f $(AWK_EXECUTABLES) diff --git a/install b/install deleted file mode 100755 index ca12cc4..0000000 --- a/install +++ /dev/null @@ -1,15 +0,0 @@ -#! /bin/sh - -PREFIX="$HOME/bin" - -if [ $1 ] -then - PREFIX=$1 -fi - -cd bin - -for filename in * -do - cp -p "`pwd`/$filename" "$PREFIX/$filename" -done