aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7d8dd53ec40d65d68c64eb2d724d9d1853fba6d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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