--- Makefile.orig 2007-12-17 22:05:00 UTC +++ Makefile @@ -1,8 +1,8 @@ -prefix = /usr/local -gamesdir = ${prefix}/games -datadir = ${prefix}/share -pkgdatadir = $(datadir)/games/monsterz +prefix? = /usr/local +gamesdir = ${prefix}/bin +datadir = ${prefix}/share/monsterz +pkgdatadir = $(datadir) scoredir = /var/games scorefile = $(scoredir)/monsterz @@ -22,7 +22,7 @@ INKSCAPE = inkscape -z all: monsterz monsterz: monsterz.c - $(CC) -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\" -DSCOREFILE=\"$(scorefile)\" -o monsterz + $(CC) $(CFLAGS) -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\" -DSCOREFILE=\"$(scorefile)\" -o monsterz bitmap: $(BITMAP) @@ -42,17 +42,17 @@ graphics/logo.png: graphics/graphics.svg install: all mkdir -p $(DESTDIR)$(gamesdir) cp monsterz $(DESTDIR)$(gamesdir)/ - chown root:games $(DESTDIR)$(gamesdir)/monsterz - chmod g+s $(DESTDIR)$(gamesdir)/monsterz + #chown root:games $(DESTDIR)$(gamesdir)/monsterz + #chmod g+s $(DESTDIR)$(gamesdir)/monsterz mkdir -p $(DESTDIR)$(pkgdatadir)/graphics mkdir -p $(DESTDIR)$(pkgdatadir)/sound cp monsterz.py $(DESTDIR)$(pkgdatadir)/ cp $(BITMAP) $(DESTDIR)$(pkgdatadir)/graphics/ cp $(SOUND) $(MUSIC) $(DESTDIR)$(pkgdatadir)/sound/ mkdir -p $(DESTDIR)$(scoredir) - test -f $(DESTDIR)$(scorefile) || echo "" > $(DESTDIR)$(scorefile) - chown root:games $(DESTDIR)$(scorefile) - chmod g+w $(DESTDIR)$(scorefile) + test -f $(DESTDIR)$(scorefile) || /usr/bin/touch $(DESTDIR)$(scorefile) + #chown root:games $(DESTDIR)$(scorefile) + #chmod g+w $(DESTDIR)$(scorefile) uninstall: rm -f $(DESTDIR)$(gamesdir)/monsterz