aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 39445396f431ab08e092d4d57fccf0154e49e692 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.POSIX:
.PHONY: all install clean
.SUFFIXES:
.SUFFIXES: .bash
ALL = nscaw
BASH = /bin/bash
PREFIX = /usr/local
all: $(ALL)
.bash:
	$(BASH) -c :
	awk -v interpreter=$(BASH) 'NR == 1 { $$1 ="#!" interpreter } 1' $< > $@
	chmod +x ./$@
install: nscaw
	cp -- nscaw $(PREFIX)/bin
clean:
	rm -f -- $(ALL)