blob: 8ec1a3dc4cf97984c9b53b68df6cb7cb3b043ac5 (
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 = parcimini
BASH = /bin/bash
PREFIX = /usr/local
all: $(ALL)
.bash:
$(BASH) -c :
awk -v interpreter=$(BASH) 'NR == 1 { $$1 ="#!" interpreter } 1' $< > $@
chmod +x ./$@
install: parcimini
mkdir -p -- $(PREFIX)/bin
cp -- parcimini $(PREFIX)/bin
clean:
rm -f -- $(ALL)
|