From b54ee85e4e6a5807917fa8630f4fd4cf7aea43a8 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 25 Sep 2019 00:27:24 +0200 Subject: First commit! --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.1