diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-25 10:43:02 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-25 10:43:02 +0000 |
commit | a0d48b01861f3745455c731078bc2b15187b1050 (patch) | |
tree | 2f94da2a304d427bd2859f740ee170c1f1945c00 /crawl-ref/source/makefile.unix | |
parent | be875338f295eb1a2c97e33e6444907f3b492e7d (diff) | |
download | crawl-ref-a0d48b01861f3745455c731078bc2b15187b1050.tar.gz crawl-ref-a0d48b01861f3745455c731078bc2b15187b1050.zip |
Removed USE_NEW_RANDOM, USE_MACROS.
Removed DOS_TERM, PLAIN_TERM special casery - all platforms get PLAIN_TERM.
Better end-of-greedy-explore reporting for items on traps (Erik).
Cleaned up find_travel_pos - moved guts of travel pathfinding to
travel_pathfind class.
Miscellaneous other stuff.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@882 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makefile.unix')
-rw-r--r-- | crawl-ref/source/makefile.unix | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/crawl-ref/source/makefile.unix b/crawl-ref/source/makefile.unix index 2e1f2a88ff..b8f3784aae 100644 --- a/crawl-ref/source/makefile.unix +++ b/crawl-ref/source/makefile.unix @@ -1,4 +1,4 @@ -# -*- Makefile -*- for Dungeon Crawl (linux) +# -*- Makefile -*- for Dungeon Crawl (unix) # # Modified for Crawl Reference by $Author$ on $Date$ @@ -20,8 +20,19 @@ OS_TYPE = UNIX # Include path for curses or ncurses. INCLUDES = -I/usr/include/ncurses -MCHMOD = 2755 -INSTALLDIR := /usr/games +# If you have lex and yacc, set DOYACC to y (lowercase y). +DOYACC := y + +# Permissions to set on the game executable. +MCHMOD := 2755 + +# Permissions to set on the save directory. +MCHMOD_SAVEDIR := 775 + +# The user:group to install the game as. +INSTALL_UGRP := games:games + +INSTALLDIR := /usr/games # If you're installing Crawl for multiple users, you *must* set this to a # valid path before building Crawl. This is not necessary if you are building @@ -50,10 +61,6 @@ endif CFLAGS := $(INCLUDES) $(CFWARN) $(CFOTHERS) YCFLAGS := $(INCLUDES) $(CFOTHERS) - -# If you have lex and yacc, set DOYACC to y (lowercase y). -DOYACC := y - UTIL = util/ LEX := lex @@ -143,6 +150,7 @@ endif install: $(GAME) [ -d $(INSTALLDIR) ] || mkdir -p $(INSTALLDIR) $(COPY) $(GAME) ${INSTALLDIR} + chown $(INSTALL_UGRP) $(INSTALLDIR)/$(GAME) chmod ${MCHMOD} ${INSTALLDIR}/$(GAME) ifeq ($(DATADIR),) $(error DATADIR not set! Set DATADIR and run make clean install again) @@ -151,8 +159,11 @@ endif cp dat/*.des $(DATADIR)/data mkdir -p $(DATADIR)/docs cp ../docs/*.txt $(DATADIR)/docs + chown -R $(INSTALL_UGRP) $(DATADIR) ifneq ($(SAVEDIR),) mkdir -p $(SAVEDIR) + chown $(INSTALL_UGRP) $(SAVEDIR) + chmod $(MCHMOD_SAVEDIR) $(SAVEDIR) endif clean: @@ -192,9 +203,6 @@ profile: $(GAME_DEPENDS) $(UTIL)%.o: $(UTIL)%.cc $(CXX) $(YCFLAGS) -o $@ -c $< -.h.cc: - touch $@ - ############################################################################# # Packaging a source tarball for release # |