This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
forked from EddyPronk/gub
-
Notifications
You must be signed in to change notification settings - Fork 17
/
arbora.make
60 lines (47 loc) · 1.79 KB
/
arbora.make
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*-Makefile-*-
.PHONY: all default packages rest update-versions print-success print-branches
.PHONY: nsis arbora arbora-installers
default: all
ARBORA_BRANCH="master"
ARBORA_REPO_URL=ssh+git://lilypond.org/~/arbora.git
ARBORA_REPO_URL=git+file://localhost/home/janneke/vc/arbora
PLATFORMS=mingw
# derived info
ARBORA_SOURCE_URL=$(ARBORA_REPO_URL)?branch=$(ARBORA_BRANCH)
ARBORA_DIRRED_BRANCH=$(shell $(PYTHON) gub/repository.py --branch-dir '$(ARBORA_SOURCE_URL)')
ARBORA_FLATTENED_BRANCH=$(shell $(PYTHON) gub/repository.py --full-branch-name '$(ARBORA_SOURCE_URL)')
# FOR BUILDING from GIT
#BUILD_PACKAGE='$(ARBORA_SOURCE_URL)'
BUILD_PACKAGE=arbora
INSTALL_PACKAGE = arbora
MAKE += -f arbora.make
# FOR BUILDING from GIT
INSTALLER_BUILDER_OPTIONS =\
--version-db=versiondb/arbora.versions\
$(if $(ARBORA_BRANCH), --branch=arbora=$(ARBORA_FLATTENED_BRANCH),)\
#
include gub.make
include compilers.make
#all: packages rest
all: arbora rest
ifeq ($(findstring mingw, $(PLATFORMS)),mingw)
rest: nsis
endif
rest: arbora-installers print-success
#avoid building native BUILD_PLATFORM
#PYTHON = PATH=$(CWD)/target/tools/root/usr/bin:$(PATH) python
arbora:
$(foreach p, $(PLATFORMS), $(call INVOKE_GUB,$(p)) $(BUILD_PACKAGE) && ) true #
arbora-installers:
$(foreach p, $(PLATFORMS), $(call INVOKE_INSTALLER_BUILDER,$(p)) $(INSTALL_PACKAGE) &&) true #
nsis:
$(GUB) tools::nsis
update-versions:
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/arbora.versions --download --platforms="mingw" --url=http://lilypond.org/blog/janneke/software/arbora
print-success:
@echo "success!!"
@echo Arbora installer in uploads/arbora*.mingw.exe
print-branches:
@echo "--branch=guile=$(GUILE_FLATTENED_BRANCH)"
@echo "--branch=lilypond=$(LILYPOND_FLATTENED_BRANCH)"
@echo "--branch=arbora=$(ARBORA_FLATTENED_BRANCH)"