-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (26 loc) · 906 Bytes
/
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
# Copyright 2017 <chaishushan{AT}gmail.com>. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
default: guetzli.node
guetzli.node: Makefile binding.gyp
node-gyp configure
node-gyp build
rebuild:
node-gyp rebuild
cmake -E copy_directory build dist/build
run: guetzli.node
node dist/lib/guetzli-cli.js -h
test: guetzli.node
node dist/lib/guetzli-cli.js testdata/bees.png a.out.jpg
deps:
npm install -g cnpm --registry=https://registy.npm.taobao.org
cnpm install -g windows-build-tool
node-gyp install --dist-url https://npm.taobao.org/mirrors/node
gitclean:
git clean -dfX
git clean -df
clean:
cmake -E remove_directory build
cmake -E remove_directory zz_build_win64_release
cmake -E remove_directory zz_build_win32_release
cmake -E remove_directory zz_build_debug_proj_mt_tmp