Tried to fix install directory problem on linux... Let's hope this doesn't blow it all.

master
Perttu Ahola 2011-01-18 23:12:52 +02:00
parent 3ef2629e84
commit affa8f80ad
1 changed files with 4 additions and 3 deletions

View File

@ -46,13 +46,14 @@ if(WIN32)
set(BINDIR "bin")
set(DOCDIR "doc")
elseif(APPLE)
# random placeholders
set(DATADIR "share/minetest")
set(BINDIR "bin")
set(DOCDIR "share/doc/minetest")
elseif(UNIX)
set(DATADIR "share/minetest")
set(BINDIR "bin")
set(DOCDIR "share/doc/minetest")
set(DATADIR "/usr/share/minetest")
set(BINDIR "/usr/bin")
set(DOCDIR "/usr/share/doc/minetest")
endif()
install(FILES "doc/README.txt" DESTINATION "${DOCDIR}")