diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-04 07:11:20 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-04 07:11:20 +0000 |
commit | c8df9af2cdf0cc4d5b845d3200be3ffdb4727e87 (patch) | |
tree | 72f3d9b4fc91226f5ce8ecc3d2e99efce8f2eda4 /crawl-ref/source/makefile.unix | |
parent | fa61313c503ba66c00ad5ab4fc75dd032fb76a34 (diff) | |
download | crawl-ref-c8df9af2cdf0cc4d5b845d3200be3ffdb4727e87.tar.gz crawl-ref-c8df9af2cdf0cc4d5b845d3200be3ffdb4727e87.zip |
Allow Mac users to double-click to launch Crawl:
- Use argv[0] to figure out where Crawl lives and where to find data files.
The Mac Finder sets the working directory to / and the full path to the
executable is available in argv[0] when the user double-clicks.
- Converted some of the old char*s to std::string.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1407 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makefile.unix')
-rw-r--r-- | crawl-ref/source/makefile.unix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/makefile.unix b/crawl-ref/source/makefile.unix index ca2fc003be..b0e2c1c27a 100644 --- a/crawl-ref/source/makefile.unix +++ b/crawl-ref/source/makefile.unix @@ -195,8 +195,10 @@ install: $(GAME) ifeq ($(DATADIR),) $(error DATADIR not set! Set DATADIR and run make clean install again) endif - mkdir -p $(DATADIR)/data - cp dat/*.des $(DATADIR)/data + mkdir -p $(DATADIR)/dat + cp dat/*.des $(DATADIR)/dat + cp dat/*.txt $(DATADIR)/dat + cp -r lua $(DATADIR)/dat mkdir -p $(DATADIR)/docs cp ../docs/*.txt $(DATADIR)/docs chown -R $(INSTALL_UGRP) $(DATADIR) |