summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-09-10 21:30:23 +0200
committerErich Eckner <git@eckner.net>2016-09-10 21:30:23 +0200
commit687f61effcd6e37da42a65d64de0937c8cb12c2c (patch)
treec5c5054e04b03217ba33aeb6ee7e01731d064a79 /Makefile
parentf0a6b0fbaaef10cbcdf543972a287db7de955dd9 (diff)
downloadmakekernel-687f61effcd6e37da42a65d64de0937c8cb12c2c.tar.xz
sollte erst mal gehen ... mal sehen
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b939797..0fc6937 100644
--- a/Makefile
+++ b/Makefile
@@ -23,13 +23,14 @@ DESTDIR =
ETCDIR = /etc
BINDIR = /usr/bin
MANDIR = /usr/share/man
+SRCDIR = /usr/src
VERSION = 0.0
-all: makekernel makekernel.8
+all: makekernel makekernel.conf makekernel.8
%: %.in
- sed "s/#VERSION#/$(VERSION)/; s@#BINDIR#@$(BINDIR)@; s@#ETCDIR#@$(ETCDIR)@" $< > $@
+ sed "s@#VERSION#@$(VERSION)@g; s@#BINDIR#@$(BINDIR)@g; s@#ETCDIR#@$(ETCDIR)@g; s@#SRCDIR#@$(SRCDIR)@g" $< > $@
.PHONY: install dist clean
@@ -39,7 +40,7 @@ install: all
install -D -m0644 makekernel.conf $(DESTDIR)$(ETCDIR)/makekernel.conf
clean:
- rm -f makekernel makekernel.8
+ rm -f makekernel makekernel.conf makekernel.8
dist: clean
git status --porcelain 2> /dev/null | grep -q "\S" && (git add .; git commit -m"neue Version: $(VERSION)") || true