Makefile: Added install-home target which installs git-annex into the HOME directory

This commit is contained in:
Joey Hess 2019-03-18 12:33:56 -04:00
parent 95e94b9d00
commit 6491b62614
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
7 changed files with 83 additions and 17 deletions

View file

@ -1,3 +1,6 @@
git-annex uses copyHook in Setup.hs to create/install man pages, .desktop file and etc.
I'm using cabal new-build/new-install to install it, and these copyHooks don't get called. I reported it to Cabal, but they replied that this should be fixed on git-annex side: https://github.com/haskell/cabal/issues/5933
> [[done]], make install-home. Can't be done in Setup.hs for new-build so
> this is the best that can be done. --[[Joey]]

View file

@ -0,0 +1,16 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2019-03-18T15:22:46Z"
content="""
stack install also bypasses the custom postCopy. It's not been much of a
problem. git-annex's Makefile can use either system to build, and does a
much better job of installing all needed files.
I've updated the install/fromsource page to point the user toward
`make install` more. Also added a `make install-home` target.
But I've kept support for using cabal install because users may be relying
on that installation method. If cabal switches to new-build by default
and it stops working, it can be removed then.
"""]]