summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-06-27 18:19:40 +0200
committerErich Eckner <git@eckner.net>2016-06-27 18:42:45 +0200
commit4cba06896d9a9be0431cfcd7275667e5a25956d7 (patch)
tree749025218b896a00108617644d46c4e25186ad62 /Makefile
parenta626f841c71f3bc9c2a645d04ccc0f33685391cc (diff)
downloadbash-git-prompt-4cba06896d9a9be0431cfcd7275667e5a25956d7.tar.xz
Konfig und skipDirRegEx neu
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 66e50df..210ad34 100644
--- a/Makefile
+++ b/Makefile
@@ -21,21 +21,23 @@
DESTDIR =
BINDIR = /usr/bin
+ETCDIR = /etc
VERSION = 0.12
-all: bash-git-prompt
+all: bash-git-prompt bash-git-prompt.conf
%: %.in
- sed "s/#VERSION#/$(VERSION)/" $< > $@
+ sed "s/#VERSION#/$(VERSION)/; s@#ETCDIR#@$(ETCDIR)@" $< > $@
.PHONY: install clean
install: all
install -D -m0755 -t $(DESTDIR)$(BINDIR) bash-git-prompt
+ install -D -m0644 -t $(DESTDIR)$(ETCDIR) bash-git-prompt.conf
clean:
- rm -f bash-git-prompt
+ rm -f bash-git-prompt bash-git-prompt.conf
dist: clean
git status --porcelain 2> /dev/null | grep -q "\S" && (git add .; git commit -m"neue Version: $(VERSION)") || true