summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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