JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
create all install dirs and parents is needed
[vor.git] / Makefile
index e377f78..555fb96 100644 (file)
--- a/Makefile
+++ b/Makefile
 #   along with this program; if not, write to the Free Software
 #   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-prefix = /usr
+prefix = /usr/local
 exec_prefix = $(prefix)
 
-datadir = $(prefix)/share/games
-pkgdatadir = $(datadir)/vor
-bindir = $(exec_prefix)/games
+datarootdir = $(prefix)/share
+pkgdatadir = $(datarootdir)/vor
+bindir = $(exec_prefix)/bin
 
 CFLAGS := -Wall -O3
 LDFLAGS := 
@@ -108,7 +108,8 @@ data-clean:
        rm -f $(graphics) font_guts font_guts.pov
 
 mkinstalldirs:
-       if [ ! -d $(DESTDIR)$(pkgdatadir) ]; then mkdir $(DESTDIR)$(pkgdatadir); fi
+       if [ ! -d $(DESTDIR)$(pkgdatadir) ]; then mkdir -p $(DESTDIR)$(pkgdatadir); fi
+       if [ ! -d $(DESTDIR)$(bindir) ]; then mkdir -p $(DESTDIR)$(bindir); fi
 
 rminstalldirs: uninstall-data
        if [ -d $(DESTDIR)$(pkgdatadir) ]; then rmdir $(DESTDIR)$(pkgdatadir); fi