From: dtrg Date: Sun, 25 Feb 2007 12:53:17 +0000 (+0000) Subject: Added the ability to install a built ACK, and did some general X-Git-Tag: release-6-0-pre-1~8 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b046c21d7f28158e9f123da251908c06f94aa422;p=ack.git Added the ability to install a built ACK, and did some general tidying. --- diff --git a/pmfile b/pmfile index ba46d90a3..db9113246 100644 --- a/pmfile +++ b/pmfile @@ -29,10 +29,8 @@ include "modules/src/read_em/pmfile" include "modules/src/em_code/pmfile" include "modules/src/em_mes/pmfile" include "modules/src/print/pmfile" -include "modules/src/string/pmfile" include "modules/src/object/pmfile" include "modules/src/idf/pmfile" -include "modules/src/print/pmfile" include "modules/src/input/pmfile" include "modules/src/flt_arith/pmfile" @@ -59,8 +57,8 @@ include "lang/basic/pmfile" include "mach/proto/pmfile" -include "mach/i386/pmfile" --[[ +include "mach/i386/pmfile" include "mach/6500/pmfile" include "mach/6800/pmfile" include "mach/6805/pmfile" @@ -183,6 +181,12 @@ default = group { posix.mkdir(TEMPDIR) posix.mkdir(HEADERDIR) +-- When doing the build, we want to ensure that the ACK looks in the staging +-- area for its files, and not in the final installation directory (because +-- we haven't been installed yet). + +posix.setenv("ACKDIR", BINDIR) + -- Build the configuration headers, rather crudely. FIXME. configure = simple { @@ -193,7 +197,7 @@ configure = simple { local f = io.open(HEADERDIR.."local.h", "w") f:write("#define VERSION 3\n") -- EM byte-code version - f:write("#define ACKM \"", DEFAULT_ARCHITECTURE, "\"\n") + f:write("#define ACKM \"", DEFAULT_PLATFORM, "\"\n") f:write("#define BIGMACHINE 1\n") -- No, we don't have a 16-bit architecture f:write("#define SYS_5\n") f:close() @@ -207,3 +211,14 @@ configure = simple { f:close() end } + +-- Once built, do the installation, rather crudely. FIXME. + +install = simple { + outputs = {"dummy"}, + command = "", + __dobuild = function(self, inputs, outputs) + os.execute("mkdir -p "..PREFIX) + os.execute("(cd "..BINDIR.." && tar chf - .) | (cd "..PREFIX.." && tar xvf -)") + end +}