Configuration for binary release

- custom bytecode compilation
- added suffix (OS, cpu) in binary distrib
This commit is contained in:
Gwenal Delaval 2013-01-28 15:55:56 +01:00
parent 2be4e287b9
commit e7f85d6b25
3 changed files with 21 additions and 18 deletions

View file

@ -1,34 +1,37 @@
include config include config
version = $(shell date +"%d%m%y") #version = $(shell date +"%d%m%y")
#version = 1.0 version = 1.0-beta
osname=$(shell uname -s)
hardware=$(shell uname -m)
heptdir = heptagon-$(version) heptdir = heptagon-$(version)
heptbindir=$(heptdir)-$(osname)-$(hardware)
binary-distrib: binary-distrib:
# main directory # main directory
mkdir -p export/$(heptdir) mkdir -p export/$(heptbindir)
# binaries # binaries
mkdir -p export/$(heptdir)/bin mkdir -p export/$(heptbindir)/bin
(cd compiler/; $(MAKE)) (cd compiler/; $(MAKE))
cp compiler/$(COMPILER).$(TARGET) export/$(heptdir)/bin/$(COMPILER) cp compiler/$(COMPILER).$(TARGET) export/$(heptbindir)/bin/$(COMPILER)
cp compiler/$(SIMULATOR).$(TARGET) export/$(heptdir)/bin/$(SIMULATOR) cp compiler/$(SIMULATOR).$(TARGET) export/$(heptbindir)/bin/$(SIMULATOR)
# libraries # libraries
(cd lib; $(MAKE)) (cd lib; $(MAKE))
cp -r lib export/$(heptdir) cp -r lib export/$(heptbindir)
# examples # examples
cp -r examples export/$(heptdir) cp -r examples export/$(heptbindir)
# tests # tests
mkdir -p export/$(heptdir)/test mkdir -p export/$(heptbindir)/test
cp -r test/bad test/good test/image_filters test/scripts test/CTestTestfile.cmake export/$(heptdir)/test cp -r test/bad test/good test/image_filters test/scripts test/CTestTestfile.cmake export/$(heptbindir)/test
# manual # manual
mkdir -p export/$(heptdir)/manual mkdir -p export/$(heptbindir)/manual
cp manual/heptagon-manual.pdf export/$(heptdir)/manual cp manual/heptagon-manual.pdf export/$(heptbindir)/manual
# Makefile, config, INSTALL # Makefile, config, INSTALL
cp config export/$(heptdir) cp config export/$(heptbindir)
cp Makefile-bin export/$(heptdir)/Makefile cp Makefile-bin export/$(heptbindir)/Makefile
cp manual/INSTALL export/$(heptdir) cp manual/INSTALL export/$(heptbindir)
cd export; tar czf $(heptdir).tar.gz $(heptdir) cd export; tar czf $(heptbindir).tar.gz $(heptbindir)
source-distrib: source-distrib:

View file

@ -2,7 +2,7 @@
<**/*.ml>: debug, dtypes, pkg_ocamlgraph <**/*.ml>: debug, dtypes, pkg_ocamlgraph
<preproc.ml>: camlp4of, use_camlp4 <preproc.ml>: camlp4of, use_camlp4
true:use_menhir true:use_menhir
<**/*.{byte,native}>: use_unix, use_str, debug, pkg_menhirLib, pkg_ocamlgraph <**/*.{byte,native}>: use_unix, use_str, debug, custom, pkg_menhirLib, pkg_ocamlgraph
<main/hepts.ml>: pkg_lablgtk2, thread <main/hepts.ml>: pkg_lablgtk2, thread
<main/hepts.{byte,native}>: pkg_lablgtk2, thread <main/hepts.{byte,native}>: pkg_lablgtk2, thread

View file

@ -32,7 +32,7 @@
open Names open Names
(* version of the compiler *) (* version of the compiler *)
let version = "0.4" let version = "1.0"
let date = "DATE" let date = "DATE"
(* standard module *) (* standard module *)