]> andersk Git - splint.git/blobdiff - os2/Makefile.os2
Added new sources and test targets.
[splint.git] / os2 / Makefile.os2
index 2e7f92d4a1ab8e14682e8773b112bc699f556d85..bad7920da351d03074980b0fa2193c1f195c55ea 100644 (file)
@@ -79,11 +79,23 @@ FLEX      = flex
 YFLAGS    = -v -t -d\r
 LFLAGS    =\r
 \r
+###\r
+### file-related commands (I use emx GNUish utilities)\r
+###\r
+CP = cp\r
+MV = mv\r
+CAT = cat\r
+RM = rm\r
+INSTALL = cp\r
+INSTALLFLAGS =           \r
+ECHO = echo\r
+SED = sed\r
+\r
 ###\r
 ### Set automatically: splint version and date etc.\r
 ###\r
 \r
-LCL_VERSION := $(shell grep "^VERSION" ../configure | sed "s/VERSION *= *//")\r
+LCL_VERSION := $(shell grep "^VERSION" ../configure | $(SED) "s/VERSION *= *//")\r
 LCL_DATE := $(shell date +"%d %b %Y")\r
 BUILD_DATE := $(shell date +"%c")\r
 ME := $(shell whoami)\r
@@ -94,22 +106,6 @@ LCL_PARSE_VERSION = Splint $(LCL_VERSION)
 SPLINT_VERSION = $(LCL_PARSE_VERSION) -- $(LCL_DATE)\r
 \r
 \r
-###\r
-### Then, run:\r
-###\r
-###    make\r
-###\r
-###\r
-\r
-### file-related commands (I use emx GNUish utilities)\r
-CP = cp\r
-MV = mv\r
-CAT = cat\r
-RM = rm\r
-INSTALL = cp\r
-INSTALLFLAGS =           \r
-ECHO = echo\r
-\r
 ###\r
 ### compiler --- gcc is recommended, but splint has been compiled\r
 ###              without changes using cc on several platforms.\r
@@ -182,9 +178,10 @@ make.vars:
        echo "INSTALL = $(INSTALL)" >>make.vars\r
        echo "INSTALLFLAGS = $(INSTALLFLAGS)" >>make.vars\r
        echo "ECHO = $(ECHO)" >>make.vars\r
+       echo "SED = $(SED)" >>make.vars\r
 \r
 ../config.h: os2config.h.in\r
-       sed -e 's|@DEFAULT_LARCHPATH@|$(DEFAULT_LARCHPATH)|' \\r
+       $(SED) -e 's|@DEFAULT_LARCHPATH@|$(DEFAULT_LARCHPATH)|' \\r
        -e 's|@DEFAULT_LCLIMPORTDIR@|$(DEFAULT_LCLIMPORTDIR)|' \\r
        -e 's|@GCC_INCLUDE_DIR@|$(GCC_INCLUDE_DIR)|' \\r
        -e 's|@GCC_INCLUDE_DIR2@|$(GCC_INCLUDE_DIR2)|' \\r
@@ -197,7 +194,7 @@ make.vars:
        os2config.h.in >../config.h\r
 \r
 setenv.cmd: setenv.cmd.in\r
-       sed -e 's|@LCL_VERSION@|$(LCL_VERSION)|' \\r
+       $(SED) -e 's|@LCL_VERSION@|$(LCL_VERSION)|' \\r
        -e 's|@BASEDIR@|$(BASEDIR)|' \\r
        setenv.cmd.in | tr '/' '\\\\' >setenv.cmd\r
 \r
This page took 0.067255 seconds and 4 git commands to generate.