From c2973ead93871b63a896c5282922e3454ff1e338 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 2 Jul 2009 23:30:27 +0200 Subject: Makefile style fixes --- Makefile | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 164a3c2..8ad07d2 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,27 @@ +prefix = /usr/local + build/apt-why.1: bin/apt-why mkdir -p build pod2man $< > $@ -install: - install -m 755 bin/apt-why /usr/local/bin - install -m 644 -D build/apt-why.1 /usr/local/share/man/man1/apt-why.1 +install: build/apt-why.1 + mkdir -p $(prefix)/bin $(prefix)/share/man/man1 + cp bin/apt-why $(prefix)/bin + cp build/apt-why.1 $(prefix)/share/man/man1 + chmod 755 $(prefix)/bin/apt-why + chmod 644 $(prefix)/share/man/man1/apt-why.1 install-completion: - install -m 644 provides/zsh/completions/_apt-why \ - /usr/local/share/zsh/site-functions + mkdir -p $(prefix)/share/zsh/site-functions + cp provides/zsh/completions/_apt-why $(prefix)/share/zsh/site-functions + chmod 644 $(prefix)/share/zsh/site-functions/_apt-why clean: - $(RM) -r build + rm -rf build uninstall: - $(RM) /usr/local/bin/apt-why - $(RM) /usr/local/share/man/man1/apt-why.1 + rm -f $(prefix)/bin/apt-why + rm -f $(prefix)/share/man/man1/apt-why.1 uninstall-completion: - $(RM) /usr/share/zsh/functions/Completion/Debian/_apt-why + rm -f $(prefix)/share/zsh/site-functions/_apt-why -- cgit v1.2.3