diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,7 +1,16 @@ .POSIX: -.PHONY: all install +.PHONY: all install clean .SUFFIXES: +.SUFFIXES: .bash +ALL = nscaw +BASH = /bin/bash PREFIX = /usr/local -all: -install: +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) |