aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-09-25 00:27:24 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-09-25 00:27:24 +0200
commitb54ee85e4e6a5807917fa8630f4fd4cf7aea43a8 (patch)
treea85c1a3e8cf6e21316a5ed594893ae36cf95a680 /Makefile
downloadcon-b54ee85e4e6a5807917fa8630f4fd4cf7aea43a8.tar.gz
con-b54ee85e4e6a5807917fa8630f4fd4cf7aea43a8.zip
First commit!
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7d8dd53
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+
+PREFIX = /usr/local
+
+con: con.sh con.awk con.tsv
+ cat con.sh > $@
+ echo 'exit 0' >> $@
+ echo "#EOF" >> $@
+ tar cz con.awk con.tsv >> $@
+ chmod +x $@
+
+test: con.sh
+ shellcheck -s sh con.sh
+
+clean:
+ rm -f con
+
+install: con
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ cp -f con $(DESTDIR)$(PREFIX)/bin
+ chmod 755 $(DESTDIR)$(PREFIX)/bin/con
+
+uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/bin/con
+
+.PHONY: test clean install uninstall