Makefile: Added install-home target which installs git-annex into the HOME directory
This commit is contained in:
parent
95e94b9d00
commit
6491b62614
7 changed files with 83 additions and 17 deletions
|
@ -29,12 +29,12 @@ import Prelude
|
|||
|
||||
systemwideInstall :: IO Bool
|
||||
#ifndef mingw32_HOST_OS
|
||||
systemwideInstall = isroot <||> destdirset
|
||||
systemwideInstall = isroot <||> (not <$> userdirset)
|
||||
where
|
||||
isroot = do
|
||||
uid <- fromIntegral <$> getRealUserID
|
||||
return $ uid == (0 :: Int)
|
||||
destdirset = isJust <$> catchMaybeIO (getEnv "DESTDIR")
|
||||
userdirset = isJust <$> catchMaybeIO (getEnv "USERDIR")
|
||||
#else
|
||||
systemwideInstall = return False
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue