summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-10 14:10:55 +0200
committerErich Eckner <git@eckner.net>2016-05-10 14:10:55 +0200
commit98672cefe5f4033655de8d626969c5a9eb0b6ef8 (patch)
tree14f3c9605874985ec489eb6074c712e85dcb015e
parentc6cf1bdf03034b6d78a2bf310226419f7a4566e9 (diff)
downloadMake-1.1.tar.xz
neue Version: 1.1v1.1
-rw-r--r--.gitignore2
-rw-r--r--Makefile12
-rwxr-xr-xewemake.in9
3 files changed, 16 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 3ad7b46..a448883 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,6 @@ Machdatei
Make
Make.8
lib
-epost
+ewemake
*~
Log*
diff --git a/Makefile b/Makefile
index 1c62b65..4395819 100644
--- a/Makefile
+++ b/Makefile
@@ -23,21 +23,21 @@ DESTDIR =
BINDIR = /usr/bin
MANDIR = /usr/share/man
-VERSION = 1.0.2
+VERSION = 1.1
-all: Make Make.8
+all: Make Make.8 ewemake
Make: Make.lp* *.pas
fpc Make.lpr
-Make.8: Make.8.in
+%: %.in
sed "s/#VERSION#/$(VERSION)/" $< > $@
.PHONY: install dist clean
install: all
- install -D -m0755 Make $(DESTDIR)$(BINDIR)/Make
- install -D -m0644 Make.8 $(DESTDIR)$(MANDIR)/man8/Make.8
+ install -D -m0755 -t $(DESTDIR)$(BINDIR) Make ewemake
+ install -D -m0644 -t $(DESTDIR)$(MANDIR)/man8 Make.8
dist: clean
git status --porcelain 2> /dev/null | grep -q "\S" && (git add .; git commit -m"neue Version: $(VERSION)") || true
@@ -47,6 +47,6 @@ dist: clean
git push --tags
clean:
- rm -f Make Make.8 *.ppu *.o
+ rm -f Make Make.8 ewemake *.ppu *.o
# End of file
diff --git a/ewemake.in b/ewemake.in
new file mode 100755
index 0000000..9fb7b23
--- /dev/null
+++ b/ewemake.in
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# ewemake verision #VERSION# - a wrapper for Make
+
+tmpFile="$(mktemp)"
+Make -A "${tmpFile}"
+chmod +x "${tmpFile}"
+"${tmpFile}"
+rm -f "${tmpFile}"