summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-15 16:27:46 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-15 16:27:46 -0400
commit6d296309a6b2d845711152faf8502dddda3a0d14 (patch)
tree41993005be4462234696fa45c088322fc525a694 /Makefile
parent84f7dab35401c896e426b49ca5e95b5a9b4952ab (diff)
Include man pages in Linux and OSX standalone builds.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 92c5f6dcc..c1fdfd0cc 100644
--- a/Makefile
+++ b/Makefile
@@ -33,14 +33,16 @@ git-union-merge.1: doc/git-union-merge.mdwn
git-union-merge:
$(GHC) --make -threaded $@
+SHAREDIR=share
+
install-mans: $(mans)
- install -d $(DESTDIR)$(PREFIX)/share/man/man1
- install -m 0644 $(mans) $(DESTDIR)$(PREFIX)/share/man/man1
+ install -d $(DESTDIR)$(PREFIX)/$(SHAREDIR)/man/man1
+ install -m 0644 $(mans) $(DESTDIR)$(PREFIX)/$(SHAREDIR)/man/man1
install-docs: docs install-mans
- install -d $(DESTDIR)$(PREFIX)/share/doc/git-annex
+ install -d $(DESTDIR)$(PREFIX)/$(SHAREDIR)/doc/git-annex
if [ -d html ]; then \
- rsync -a --delete html/ $(DESTDIR)$(PREFIX)/share/doc/git-annex/html/; \
+ rsync -a --delete html/ $(DESTDIR)$(PREFIX)/$(SHAREDIR)/doc/git-annex/html/; \
fi
install: build install-docs Build/InstallDesktopFile
@@ -105,7 +107,7 @@ linuxstandalone: Build/Standalone
rm -rf "$(LINUXSTANDALONE_DEST)"
mkdir -p tmp
cp -R standalone/linux "$(LINUXSTANDALONE_DEST)"
-
+
install -d "$(LINUXSTANDALONE_DEST)/bin"
cp git-annex "$(LINUXSTANDALONE_DEST)/bin/"
strip "$(LINUXSTANDALONE_DEST)/bin/git-annex"
@@ -132,6 +134,8 @@ linuxstandalone: Build/Standalone
done
sort "$(LINUXSTANDALONE_DEST)/libdirs.tmp" | uniq > "$(LINUXSTANDALONE_DEST)/libdirs"
rm -f "$(LINUXSTANDALONE_DEST)/libdirs.tmp"
+
+ $(MAKE) install-mans DESTDIR="$(LINUXSTANDALONE_DEST)"
cd tmp/git-annex.linux && find . -type f > git-annex.MANIFEST
cd tmp/git-annex.linux && find . -type l >> git-annex.MANIFEST
@@ -158,6 +162,9 @@ osxapp: Build/Standalone Build/OSXMkLibs
(cd "$(shell git --exec-path)" && tar c .) | (cd "$(OSXAPP_BASE)" && tar x)
install -d "$(OSXAPP_BASE)/templates"
+ # OSX looks in man dir nearby the bin
+ $(MAKE) install-mans DESTDIR="$(OSXAPP_BASE)" SHAREDIR=""
+
./Build/OSXMkLibs $(OSXAPP_BASE)
cd $(OSXAPP_DEST) && find . -type f > Contents/MacOS/git-annex.MANIFEST
cd $(OSXAPP_DEST) && find . -type l >> Contents/MacOS/git-annex.MANIFEST