-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
58 lines (44 loc) · 2.41 KB
/
Makefile
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
# Copyright (C) 2017 Kagucho <kagucho.net@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
output/kagucho2018.iso: target-kagucho2018 target-play output/kagucho2018/win32-x64
mkisofs -J -V KAGUCHO2018 -copyright COPYRIGHT.TXT -abstract ABSTRACT.TXT -o $@ -udf output/kagucho2018
clean:
rm -rf output/kagucho2018 output/kagucho2018.iso
distclean:
rm -rf output
lint: lint-electron lint-node
lint-electron: ./node_modules/.bin/eslint electron.eslintrc.json electron.eslintignore
./node_modules/.bin/eslint -c electron.eslintrc.json --ignore-path electron.eslintignore .
lint-node: ./node_modules/.bin/eslint node.eslintrc.json node.eslintignore
./node_modules/.bin/eslint -c node.eslintrc.json --ignore-path node.eslintignore .
watch:
cd play/main && $(abspath ./node_modules/.bin/webpack) --mode=development --watch & cd play/renderer && $(abspath ./node_modules/.bin/webpack) --mode=development --watch
target-kagucho2018: blob/kagucho2018
mkdir -p output
rsync -r $< output
target-play: target-play-main target-play-renderer
target-play-main: ./node_modules/.bin/webpack play/main
cd play/main && $(abspath ./node_modules/.bin/webpack) --mode=production
target-play-renderer: ./node_modules/.bin/webpack play/renderer
cd play/renderer && $(abspath node_modules/.bin/webpack) --mode=production
output/kagucho2018/win32-x64: output/intermediate/electron-v3.0.6-win32-x64.zip app.json
mkdir -p $@/resources/app
unzip -d $@ output/intermediate/electron-v3.0.6-win32-x64.zip
cp app.json $@/resources/app/package.json
output/intermediate/electron-v3.0.6-win32-x64.zip:
mkdir -p $(dir $@)
wget -O $@ https://github.com/electron/electron/releases/download/v3.0.6/electron-v3.0.6-win32-x64.zip
.PHONY: clean distclean lint lint-electron lint-node target-kagucho2018 \
target-play target-play-main target-play-renderer watch