Move install script to make
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 29 Aug 2018 21:33:12 +0000 (17:33 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 29 Aug 2018 21:33:12 +0000 (17:33 -0400)
Makefile
install [deleted file]

index c741acf..c63c61e 100644 (file)
--- 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 (executable)
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
This page took 0.021877 seconds and 4 git commands to generate.