From 4751cfd15cd077fbb65fc315c6d7856693660e90 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Tue, 15 Feb 2011 04:00:53 +0000 Subject: [PATCH] Fixed a problem with build on cygwin related to the svnversion stuff. git-svn-id: http://picoc.googlecode.com/svn/trunk@530 21eae674-98b7-11dd-bd71-f92a316d2d60 --- Makefile | 9 +-------- clibrary.c | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 1e2f098..6635174 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -pedantic -g -DUNIX_HOST +CFLAGS=-Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\" LIBS=-lm -lreadline TARGET = picoc @@ -16,13 +16,6 @@ all: depend $(TARGET) $(TARGET): $(OBJS) $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS) -# rebuild the version number every time so we always have the -# correct subversion version -version.h: - echo "#define PICOC_SUBVERSION_VERSION \"`svnversion`\"" > version.h - -.PHONY: version.h - test: all (cd tests; make test) diff --git a/clibrary.c b/clibrary.c index 53a9696..be2fd40 100644 --- a/clibrary.c +++ b/clibrary.c @@ -2,7 +2,7 @@ #include "version.h" /* the picoc version string */ -#define PICOC_VERSION "v2.1 beta r" PICOC_SUBVERSION_VERSION +#define PICOC_VERSION "v2.1 beta r" VER static const char *VersionString = NULL;