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