aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-08-03 12:21:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2021-08-03 12:21:27 +1200
commit32f7fb71ceb9c6c0a671b0c90fc45fb536359faa (patch)
treee1565da6ca0155ddc2e6d8df529e9c00589f176c /Makefile
parentMerge branch 'release/v0.3.0' (diff)
parentRefactor Makefile a little (diff)
downloadparcimini-1.0.0.tar.gz (sig)
parcimini-1.0.0.zip
Merge branch 'release/v1.0.0'HEADv1.0.0masterdevelop
* release/v1.0.0: Relicense to GPLv3+ Refactor Makefile a little
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index b8144fe..8ec1a3d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,15 @@
-.POSIX:
.PHONY: all install clean
.SUFFIXES:
.SUFFIXES: .bash
-PREFIX = /usr/local
-BASH = /bin/bash
ALL = parcimini
+BASH = /bin/bash
+PREFIX = /usr/local
+all: $(ALL)
.bash:
$(BASH) -c :
- awk -v bash=$(BASH) 'NR == 1 { print "#!" bash } 1' $< > $@
+ awk -v interpreter=$(BASH) 'NR == 1 { $$1 ="#!" interpreter } 1' $< > $@
chmod +x ./$@
-all: $(ALL)
-install: $(ALL)
+install: parcimini
mkdir -p -- $(PREFIX)/bin
cp -- parcimini $(PREFIX)/bin
clean: