2013-01-25 00:33:12 +01:00
|
|
|
|
|
|
|
include config
|
|
|
|
|
2013-01-28 15:55:56 +01:00
|
|
|
#version = $(shell date +"%d%m%y")
|
2017-09-29 14:58:37 +02:00
|
|
|
version = 1.04.00
|
2013-01-28 15:55:56 +01:00
|
|
|
osname=$(shell uname -s)
|
|
|
|
hardware=$(shell uname -m)
|
2013-01-25 00:33:12 +01:00
|
|
|
heptdir = heptagon-$(version)
|
2013-01-28 15:55:56 +01:00
|
|
|
heptbindir=$(heptdir)-$(osname)-$(hardware)
|
2013-01-25 00:33:12 +01:00
|
|
|
|
|
|
|
binary-distrib:
|
|
|
|
# main directory
|
2013-01-28 15:55:56 +01:00
|
|
|
mkdir -p export/$(heptbindir)
|
2013-01-25 00:33:12 +01:00
|
|
|
# binaries
|
2013-01-28 15:55:56 +01:00
|
|
|
mkdir -p export/$(heptbindir)/bin
|
2013-01-25 00:33:12 +01:00
|
|
|
(cd compiler/; $(MAKE))
|
2013-01-28 15:55:56 +01:00
|
|
|
cp compiler/$(COMPILER).$(TARGET) export/$(heptbindir)/bin/$(COMPILER)
|
|
|
|
cp compiler/$(SIMULATOR).$(TARGET) export/$(heptbindir)/bin/$(SIMULATOR)
|
2013-01-25 00:33:12 +01:00
|
|
|
# libraries
|
|
|
|
(cd lib; $(MAKE))
|
2013-01-28 15:55:56 +01:00
|
|
|
cp -r lib export/$(heptbindir)
|
2013-01-25 00:33:12 +01:00
|
|
|
# examples
|
2013-01-28 15:55:56 +01:00
|
|
|
cp -r examples export/$(heptbindir)
|
2013-01-25 00:33:12 +01:00
|
|
|
# tests
|
2013-01-28 15:55:56 +01:00
|
|
|
mkdir -p export/$(heptbindir)/test
|
2017-02-08 21:36:04 +01:00
|
|
|
cp -r test/bad test/good test/sdc test/image_filters test/scripts test/CTestTestfile.cmake export/$(heptbindir)/test
|
2013-01-25 00:33:12 +01:00
|
|
|
# manual
|
2013-01-28 15:55:56 +01:00
|
|
|
mkdir -p export/$(heptbindir)/manual
|
2015-09-17 17:22:46 +02:00
|
|
|
cp manual/heptagon-manual.pdf manual/heptreax-manual.pdf export/$(heptbindir)/manual
|
2013-01-25 00:33:12 +01:00
|
|
|
# Makefile, config, INSTALL
|
2013-01-28 15:55:56 +01:00
|
|
|
cp config export/$(heptbindir)
|
|
|
|
cp Makefile-bin export/$(heptbindir)/Makefile
|
|
|
|
cp manual/INSTALL export/$(heptbindir)
|
|
|
|
cd export; tar czf $(heptbindir).tar.gz $(heptbindir)
|
2013-01-25 00:33:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
source-distrib:
|
|
|
|
# main directory
|
|
|
|
mkdir -p export/$(heptdir)
|
|
|
|
# sources
|
|
|
|
cp -r compiler export/$(heptdir)
|
|
|
|
# libraries
|
|
|
|
cp -r lib export/$(heptdir)
|
|
|
|
# examples
|
|
|
|
cp -r examples export/$(heptdir)
|
|
|
|
# tests
|
|
|
|
mkdir -p export/$(heptdir)/test
|
|
|
|
cp -r test/bad test/good test/image_filters test/scripts test/CTestTestfile.cmake export/$(heptdir)/test
|
|
|
|
# manual
|
|
|
|
mkdir -p export/$(heptdir)/manual
|
2015-09-17 17:22:46 +02:00
|
|
|
cp manual/heptagon-manual.pdf manual/heptreax-manual.pdf export/$(heptdir)/manual
|
2013-02-04 22:16:10 +01:00
|
|
|
# Makefile, config.in, configure, install-sh, INSTALL, COPYING
|
2013-01-25 00:33:12 +01:00
|
|
|
cp config.in export/$(heptdir)
|
|
|
|
cp configure export/$(heptdir)
|
2013-02-04 22:16:10 +01:00
|
|
|
cp install-sh export/$(heptdir)
|
2013-01-25 00:33:12 +01:00
|
|
|
cp Makefile export/$(heptdir)
|
|
|
|
cp COPYING export/$(heptdir)
|
|
|
|
cp manual/INSTALL export/$(heptdir)
|
|
|
|
cd export; tar czf $(heptdir).tar.gz --exclude _build $(heptdir)
|
|
|
|
|