Permalink
Browse files

Sat Nov 4 19:26:33 PST 2006

    Fixed installation bugs reported by Peter Suetterlin.

    [netwalk-0.4.10.tgz]
  • Loading branch information...
1 parent 421bd89 commit 39c8f32ed3f091639f8715d2d381a74729164d72 Ben Lynn committed Nov 5, 2006
Showing with 18 additions and 6 deletions.
  1. +11 −3 Makefile
  2. +5 −0 NEWS
  3. +1 −3 linux/config_file.c
  4. +1 −0 sharedir.h
View
@@ -1,4 +1,4 @@
-VERSION=0.4.9
+VERSION=0.4.10
ALLFILES = *.[ch] Makefile LICENSE README copyright NEWS linux/*.[ch] win32/*.[ch] Vera.ttf
PROJNAME = netwalk
OS ?= linux
@@ -18,8 +18,15 @@ endif
.PHONY: target clean dist
-target : version.h $(PROJNAME)
+target : version.h sharedir.h $(PROJNAME)
+sharedir.h : ./Makefile
+ifeq ("$(OS)", "win32")
+ echo '#define NETWALK_SHARE_DIR "."' > sharedir.h
+else
+ echo '#define NETWALK_SHARE_DIR "'$(PREFIX)'/share/netwalk"' > sharedir.h
+
+endif
version.h : ./Makefile
echo '#define VERSION_STRING "'$(VERSION)'"' > version.h
@@ -56,9 +63,10 @@ zip : target
else
install : netwalk
+ $(INSTALL) -d $(PREFIX)/bin
$(INSTALL) -m 755 netwalk $(PREFIX)/bin
$(INSTALL) -d $(PREFIX)/share/$(PROJNAME)
- $(INSTALL) -m 644 helmetr.ttf $(PREFIX)/share/$(PROJNAME)/
+ $(INSTALL) -m 644 Vera.ttf $(PREFIX)/share/$(PROJNAME)/
uninstall : clean
-rm -f $(PREFIX)/bin/$(PROJNAME)
View
5 NEWS
@@ -1,3 +1,8 @@
+Sat Nov 4 19:26:33 PST 2006
+ Fixed installation bugs reported by Peter Suetterlin.
+
+ [netwalk-0.4.10.tgz]
+
Tue May 9 13:19:01 PDT 2006
Applied hymie's <http://www.smart.net/~hymowitz> patch. Window caption
now shows difficulty level.
View
@@ -1,13 +1,11 @@
#include "config.h"
+#include "sharedir.h"
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#define NETWALK_SHARE_DIR "."
-//#define NETWALK_SHARE_DIR "/usr/share/netwalk"
-
FILE *config_get_fp()
{
FILE *fp;
View
@@ -0,0 +1 @@
+#define NETWALK_SHARE_DIR "/usr/share/netwalk"

0 comments on commit 39c8f32

Please sign in to comment.