1 --- Makefile.orig 2009-02-22 15:40:44.177758394 +0100
2 +++ Makefile 2009-02-22 15:44:34.346137033 +0100
8 -COPTS= $(CFLAGS) -funsigned-char \
9 +COPTS= $(CXXFLAGS) -funsigned-char \
10 -DRESOURCEPATH=\"$(INSTALLRESOURCEPATH)\" \
11 -DSCOREPATH=\"$(INSTALLHISCORES)\"
12 LIBS= -lm -lSDL -lSDL_mixer -lGL -lGLU
15 # For a non-root install, try something like this:
17 -#INSTALLBIN=/home/blotwell/bin/asylum
18 -#INSTALLRESOURCEPATH=/home/blotwell/lib/asylum
19 -#INSTALLHISCORES=/home/blotwell/.asylum-hiscores
21 +INSTALLRESOURCEPATH=/usr/share/asylum
22 +INSTALLHISCORES=/usr/share/asylum/hiscores
27 LIBS=-lm -lmingw32 -lSDL_mixer -lSDLmain -lSDL -mwindows
29 ifeq ($(HOST),generic)
30 - INSTALLBIN=/usr/games/asylum
31 - INSTALLRESOURCEPATH=/usr/share/games/asylum
32 - INSTALLHISCORES=/var/games/asylum
33 + #INSTALLBIN=/usr/games/asylum
34 + INSTALLRESOURCEPATH=/usr/share/asylum
35 + INSTALLHISCORES=/usr/share/asylum/hiscores
41 $(INSTALLBIN): asylum$(EXE) Makefile
42 - cp asylum$(EXE) $(INSTALLBIN)
43 - $(CHGRP) $(INSTALLGROUP) $(INSTALLBIN)
44 - $(CHMOD) g+s $(INSTALLBIN)
45 - $(CHMOD) a+x $(INSTALLBIN)
46 + mkdir -p $(DESTDIR)$(INSTALLBIN)
47 + cp asylum$(EXE) $(DESTDIR)$(INSTALLBIN)
48 + $(CHMOD) a+x $(DESTDIR)$(INSTALLBIN)/asylum$(EXE)
50 install-resources: $(RESOURCES) Makefile
51 - mkdir -p $(INSTALLRESOURCEPATH)
52 - cp -r $(RESOURCES) $(INSTALLRESOURCEPATH)/
53 - $(CHGRP) -R $(INSTALLGROUP) $(INSTALLRESOURCEPATH)/
54 - $(CHMOD) -R a+rX $(INSTALLRESOURCEPATH)/
55 + mkdir -p $(DESTDIR)$(INSTALLRESOURCEPATH)
56 + cp -r $(RESOURCES) $(DESTDIR)$(INSTALLRESOURCEPATH)/
57 + $(CHMOD) -R a+rX $(DESTDIR)$(INSTALLRESOURCEPATH)/
59 install-hiscores: Makefile
60 - mkdir -p $(INSTALLHISCORES)
61 - touch $(INSTALLHISCORES)/EgoHighScores
62 - touch $(INSTALLHISCORES)/PsycheHighScores
63 - touch $(INSTALLHISCORES)/IdHighScores
64 - touch $(INSTALLHISCORES)/ExtendedHighScores
65 - $(CHGRP) -R $(INSTALLGROUP) $(INSTALLHISCORES)/*
66 - $(CHMOD) -R 660 $(INSTALLHISCORES)/*
67 + mkdir -p $(DESTDIR)$(INSTALLHISCORES)
68 + touch $(DESTDIR)$(INSTALLHISCORES)/EgoHighScores
69 + touch $(DESTDIR)$(INSTALLHISCORES)/PsycheHighScores
70 + touch $(DESTDIR)$(INSTALLHISCORES)/IdHighScores
71 + touch $(DESTDIR)$(INSTALLHISCORES)/ExtendedHighScores
72 + $(CHGRP) -R $(INSTALLGROUP) $(DESTDIR)$(INSTALLHISCORES)/*
73 + $(CHMOD) -R 664 $(DESTDIR)$(INSTALLHISCORES)/*
75 install-binary: $(INSTALLBIN)