forked from gperciva/gub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
denemo.make
67 lines (53 loc) · 2.16 KB
/
denemo.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
61
62
63
64
65
66
67
# -*-Makefile-*-
.PHONY: all default packages rest update-versions print-success print-branches
.PHONY: nsis denemo denemo-installers
default: all
DENEMO_BRANCH="master"
DENEMO_REPO_URL=git://git.savannah.gnu.org/denemo.git
PLATFORMS=mingw
# derived info
DENEMO_SOURCE_URL=$(DENEMO_REPO_URL)?branch=$(DENEMO_BRANCH)
DENEMO_DIRRED_BRANCH=$(shell $(PYTHON) gub/repository.py --branch-dir '$(DENEMO_SOURCE_URL)')
DENEMO_FLATTENED_BRANCH=$(shell $(PYTHON) gub/repository.py --full-branch-name '$(DENEMO_SOURCE_URL)')
# FOR BUILDING from GIT
#BUILD_PACKAGE='$(DENEMO_SOURCE_URL)'
BUILD_PACKAGE=denemo
INSTALL_PACKAGE = denemo
MAKE += -f denemo.make
# urg, from lilypond.make -- should share lilypond info
#LILYPOND_BRANCH=master
LILYPOND_REPO_URL=git://git.sv.gnu.org/lilypond.git
# derived info
LILYPOND_SOURCE_URL=$(LILYPOND_REPO_URL)?branch=$(LILYPOND_BRANCH)
LILYPOND_DIRRED_BRANCH=$(shell $(PYTHON) gub/repository.py --branch-dir '$(LILYPOND_SOURCE_URL)')
LILYPOND_FLATTENED_BRANCH=$(shell $(PYTHON) gub/repository.py --full-branch-name '$(LILYPOND_SOURCE_URL)')
# FOR BUILDING from GIT
INSTALLER_BUILDER_OPTIONS =\
--version-db=versiondb/denemo.versions\
$(if $(DENEMO_BRANCH), --branch=denemo=$(DENEMO_FLATTENED_BRANCH),)\
$(if $(LILYPOND_BRANCH), --branch=lilypond=$(LILYPOND_FLATTENED_BRANCH),)\
#
include gub.make
include compilers.make
#all: packages rest
all: denemo rest
ifeq ($(findstring mingw, $(PLATFORMS)),mingw)
rest: nsis
endif
rest: denemo-installers print-success
#avoid building native BUILD_PLATFORM
denemo:
$(foreach p, $(PLATFORMS), $(call INVOKE_GUB,$(p)) $(BUILD_PACKAGE) && ) true #
denemo-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/denemo.versions --download --platforms="mingw" --url=http://lilypond.org/blog/janneke/software/denemo
print-success:
@echo "success!!"
@echo Denemo installer in uploads/denemo*.mingw.exe
print-branches:
@echo "--branch=guile=$(GUILE_FLATTENED_BRANCH)"
@echo "--branch=lilypond=$(LILYPOND_FLATTENED_BRANCH)"
@echo "--branch=denemo=$(DENEMO_FLATTENED_BRANCH)"