diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |