File tree Expand file tree Collapse file tree 3 files changed +21
-14
lines changed
Expand file tree Collapse file tree 3 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 11* ~
2- /output /
3- /[-_[:alnum: ]]* /
4- ! /plum
5- ! /scripts /
2+ /output
3+ brise- * .tar.gz
Original file line number Diff line number Diff line change 11ifeq ($(SRCDIR ) ,)
2- SRCDIR= $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
2+ SRCDIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
33endif
44
55# Tips: you can set OUTPUT to Rime user directory in the command line
66ifeq ($(OUTPUT ) ,)
7- OUTPUT:= $(SRCDIR)/output
7+ OUTPUT := $(SRCDIR)/output
88endif
99
1010ifeq ($(PREFIX ) ,)
11- PREFIX= /usr
11+ PREFIX := /usr
1212endif
1313
1414ifeq ($(RIME_DATA_DIR ) ,)
15- RIME_DATA_DIR= $(PREFIX)/share/rime-data
15+ RIME_DATA_DIR := $(PREFIX)/share/rime-data
1616endif
1717
18+ # `build_bin=1 make` would build binaries for input schemas enabled by default.
19+ # Note this doesn't work for `extra`, because non of the extra input schemas are
20+ # enabled by default.
1821all preset extra minimal :
19- no_update=1 $(MAKE ) -C plum OUTPUT=$(OUTPUT ) $(@ ) build
22+ no_update=1 $(MAKE ) -C plum OUTPUT=$(OUTPUT ) $(@ ) $$ {build_bin:+-bin}
2023
21- build install clean :
24+ install clean :
2225 $(MAKE ) -C plum OUTPUT=$(OUTPUT ) $(@ )
2326
24- tarball :
27+ VERSION = $(shell date "+% Y% m% d")
28+
29+ dist :
2530 git submodule update --init
2631 $(MAKE ) -C plum OUTPUT=$(OUTPUT ) all
27- tar czvf brise-all.tar.gz --exclude=.git --exclude=output -C .. brise
32+ tar czf brise-$(VERSION ) .tar.gz \
33+ --exclude=.git \
34+ --exclude=output \
35+ --exclude=' brise-*.tar.gz' \
36+ -C .. brise
2837
29- .PHONY : all preset extra minimal build install clean tarball
38+ .PHONY : all preset extra minimal install clean dist
You can’t perform that action at this time.
0 commit comments