summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6edd7f4..e29e455 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
SOURCE=git-sonar git-precheck
+MANPAGES=git-sonar.1 git-precheck.1
PREFIX?=/usr/local
PWD=$(shell pwd)
@@ -16,13 +17,14 @@ all:
@echo 'If you want to install *git-sonar* for your user only:'
@echo ' PREFIX=$$HOME/.local make install'
-install: $(SOURCE)
- @echo 'Installing in' $(PREFIX)/bin '...'
- mkdir -p $(PREFIX)/bin
+install:
+ @echo 'Installing in' $(PREFIX) '...'
+ mkdir -p $(PREFIX)/bin $(PREFIX)/share/man/man1
install -m 755 $(SOURCE) $(PREFIX)/bin
+ install -m 644 $(MANPAGES) $(PREFIX)/share/man/man1
-# Link each file separately since the full PWD is needed
-develop: $(SOURCE)
+develop:
+ # Link each file separately since the full PWD is needed
@echo 'Symlinking in' $(PREFIX)/bin '...'
mkdir -p $(PREFIX)/bin
ln -sf $(PWD)/git-sonar $(PREFIX)/bin