equal
deleted
inserted
replaced
4 |
4 |
5 # see also: |
5 # see also: |
6 # build_in_docker.sh : use case example |
6 # build_in_docker.sh : use case example |
7 # provision_bionic64.sh : prerequisites |
7 # provision_bionic64.sh : prerequisites |
8 |
8 |
9 all: Beremiz-installer |
9 all: main_target |
10 |
10 |
11 DIST ?= win32 |
11 DIST ?= win32 |
12 |
12 |
13 src := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) |
13 src := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) |
14 HGREMOTE ?= REMOTE_HG_DISABLED |
14 HGREMOTE ?= REMOTE_HG_DISABLED |
15 HGROOT ?= $(abspath $(src)/..) |
15 HGROOT ?= $(abspath $(src)/..) |
16 GITROOT := $(HGROOT) |
16 GITROOT := $(HGROOT) |
17 CPUS := `cat /proc/cpuinfo | grep -e 'processor\W*:\W*[[:digit:]]*' | nl -n ln | tail -n1 | cut -f1` |
17 CPUS := `cat /proc/cpuinfo | grep -e 'processor\W*:\W*[[:digit:]]*' | nl -n ln | tail -n1 | cut -f1` |
18 BLKDEV=/dev/null |
18 BLKDEV=/dev/null |
19 |
|
20 XVFBRUN ?= xvfb-run |
|
21 |
19 |
22 distfiles = $(src)/distfiles |
20 distfiles = $(src)/distfiles |
23 sfmirror = downloads |
21 sfmirror = downloads |
24 tmp := $(shell rm -rf $${TMPDIR:-/tmp}/beremiz_dist_build_tmp.* ; mktemp -d -t beremiz_dist_build_tmp.XXXXXXXXXX) |
22 tmp := $(shell rm -rf $${TMPDIR:-/tmp}/beremiz_dist_build_tmp.* ; mktemp -d -t beremiz_dist_build_tmp.XXXXXXXXXX) |
25 |
23 |
46 endef |
44 endef |
47 |
45 |
48 get_src_pypi=$(call get_src_http,https://pypi.python.org/packages/$(1),$(2)) |
46 get_src_pypi=$(call get_src_http,https://pypi.python.org/packages/$(1),$(2)) |
49 |
47 |
50 get_src_sf=$(call get_src_http,https://$(sfmirror).sourceforge.net/project/$(1),$(2)) |
48 get_src_sf=$(call get_src_http,https://$(sfmirror).sourceforge.net/project/$(1),$(2)) |
51 |
|
52 include $(src)/windows_installer.mk |
|
53 |
49 |
54 ifneq ("$(DIST)","") |
50 ifneq ("$(DIST)","") |
55 include $(src)/$(DIST).mk |
51 include $(src)/$(DIST).mk |
56 endif |
52 endif |
57 |
53 |
94 revisions.txt: $(src)/revisions.txt own_sources |
90 revisions.txt: $(src)/revisions.txt own_sources |
95 echo "Generate revisions.txt" |
91 echo "Generate revisions.txt" |
96 echo "\n******* PACKAGE REVISIONS ********\n" > revisions.txt |
92 echo "\n******* PACKAGE REVISIONS ********\n" > revisions.txt |
97 (echo -n "beremiz_dist revision is: "; hg -R $(src) id;) >> revisions.txt |
93 (echo -n "beremiz_dist revision is: "; hg -R $(src) id;) >> revisions.txt |
98 ($(foreach project,$(OWN_PROJECTS),$(call show_revision_details,$(project)))) >> revisions.txt |
94 ($(foreach project,$(OWN_PROJECTS),$(call show_revision_details,$(project)))) >> revisions.txt |
99 bash -c 'hg -R $(src) st | ( if read ; then echo -e "\n******* MODIFIED LPCDISTRO ********\n" ; hg -R $(src) st ; fi ) >> revisions.txt' |
95 bash -c 'hg -R $(src) st | ( if read ; then echo -e "\n******* beremiz_public_dist IS MODIFIED ********\n" ; hg -R $(src) st ; fi ) >> revisions.txt' |
100 |
96 |
101 |
97 |
102 |
98 |