summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBenjamin Drung <bdrung@ubuntu.com>2009-08-12 02:18:05 +0200
committerBenjamin Drung <bdrung@ubuntu.com>2009-08-12 02:18:05 +0200
commitb70e3c68fbe224893d4b3c0e0f1b710f76f7797d (patch)
tree864653c3ac4b8fdf47bb3fddbed0da567f56583c /src/Makefile
parent77b8e18cf0a9edeef514ddb98c6efd9311a8757c (diff)
* moz-version:
- wrote man page for moz-version - add man/moz-version.1 - update src/Makefile
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index ae7281d..3149cc6 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -19,6 +19,7 @@
PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/share/man
DATADIR = $(PREFIX)/share/mozilla-devscripts
@@ -74,7 +75,7 @@ extra_dirs = \
build: $(subst_files)
-install: $(subst_files) $(extra_files) $(foreach dir,$(extra_dirs),$(wildcard $(dir)/*))
+install: $(subst_files) $(extra_files) $(foreach dir,$(extra_dirs),$(wildcard $(dir)/*)) install-man
install -m 755 -d $(DESTDIR)$(DATADIR) $(foreach dir,$(extra_dirs),$(DESTDIR)$(DATADIR)/$(dir))
install -m 644 $(subst_files) $(extra_files) $(DESTDIR)$(DATADIR)
install -m 755 -d $(DESTDIR)$(BINDIR)
@@ -85,5 +86,10 @@ install: $(subst_files) $(extra_files) $(foreach dir,$(extra_dirs),$(wildcard $(
find $(DESTDIR)$(DATADIR) -type f \( -name \*.pl -o -name \*.sh \) -exec chmod -v 755 {} \;
chmod 755 $(DESTDIR)$(DATADIR)/minefield-packager.mk
+install-man:
+ install -D -m 644 ../man/moz-version.1 $(DESTDIR)$(MANDIR)/man1/moz-version.1
+
clean:
rm -f $(subst_files)
+
+.PHONY: clean install install-man