From 98672cefe5f4033655de8d626969c5a9eb0b6ef8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 10 May 2016 14:10:55 +0200 Subject: neue Version: 1.1 --- .gitignore | 2 +- Makefile | 12 ++++++------ ewemake.in | 9 +++++++++ 3 files changed, 16 insertions(+), 7 deletions(-) create mode 100755 ewemake.in 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}" -- cgit v1.2.3-70-g09d2