forked from open-eid/chrome-token-signing
-
Notifications
You must be signed in to change notification settings - Fork 1
/
GNUmakefile
47 lines (40 loc) · 1.52 KB
/
GNUmakefile
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
#
# Chrome Token Signing Native Host
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# This is the Makefile for OSX/Linux. See Makefile for Windows NMake.
UNAME = `uname`
RELEASE = `grep '"version"' extension/manifest.json | cut -d'"' -f 4`
detect:
make $(UNAME)
Linux:
make -C host-linux
Darwin:
make -C host-osx
# Make the zip to be uploaded to chrome web store
release:
test ! -f extension-$(RELEASE).zip
test -z "`git status -s extension`"
git clean -dfx extension
zip -r -j extension-$(RELEASE).zip extension
test: detect
# wildcard will resolve to an empty string with a missing file
# so that OSX will not run with xvfb
$(wildcard /usr/bin/xvfb-run) python host-test/pipe-test.py -v
# Make the targzip for the native components
# FIXME: git describe vs $(RELEASE) ?
dist:
git-archive-all chrome-token-signing-`git describe --tags --always`.tar.gz