diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 12 | ||||
-rwxr-xr-x | ewemake.in | 9 |
3 files changed, 16 insertions, 7 deletions
@@ -10,6 +10,6 @@ Machdatei Make Make.8 lib -epost +ewemake *~ Log* @@ -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}" |