--- Makefile.orig	Thu Nov 25 01:37:20 2004
+++ Makefile	Thu Nov 25 01:37:58 2004
@@ -1,9 +1,9 @@
 
 DESTDIR= # this variable is overwritten to install in RPMBUILDDESTDIR
-PREFIX=$(DESTDIR)/usr/
-DOCDIR=$(DESTDIR)/usr/share/doc/packages/ctetris/
-MANDIR=$(DESTDIR)/usr/share/man/man1/
-BINDIR=$(DESTDIR)/bin/
+PREFIX=$(DESTDIR)__PREFIX__
+DOCDIR=$(PREFIX)/share/doc/ctetris
+MANDIR=$(PREFIX)/share/man/man1
+BINDIR=$(PREFIX)/bin
 CC=gcc
 MKDIR=mkdir -p
 INSTALL=install
@@ -19,7 +19,7 @@
 all:
 	make config
 	make build
-	
+
 config:	
 	./create_config.sh
 
@@ -37,7 +37,7 @@
 	$(RM) $(OBJS) $(OUTPUT) config.h
 
 
-install:
+install: all
 	$(MKDIR) $(BINDIR) $(MANDIR) $(DOCDIR)
 	$(INSTALL) $(OUTPUT) $(BINDIR)
 	$(INSTALL) -m 644 $(DOCS) $(DOCDIR)
