-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (19 loc) · 994 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
export PATH := $(shell pwd)/node_modules/.bin:$(PATH)
DIRS = node_modules/engine.ns.io-client/
all: npm_install public/engine.ns.io-client.js
npm_install:
npm install
node_modules/engine.ns.io-client/build/engine.ns.io-client.js:
make -BC node_modules/engine.ns.io-client build
public/engine.ns.io-client.js: node_modules/engine.ns.io-client/build/engine.ns.io-client.js
cp node_modules/engine.ns.io-client/build/engine.ns.io-client.js public
clean:
rm -rf node_modules
rm -rf public/engine.ns.io-client.js
install:
install -d $(DESTDIR)/usr/lib/poker-terminator/public/ -d $(DESTDIR)/usr/share/poker-terminator/
cp -r node_modules $(DESTDIR)/usr/lib/poker-terminator/
install -m 644 src/server.coffee src/test.coffee $(DESTDIR)/usr/lib/poker-terminator/
install -m 644 pokerterminator.yaml.example $(DESTDIR)/usr/share/poker-terminator/
install -m 644 public/* $(DESTDIR)/usr/lib/poker-terminator/public/
.PHONY: node_modules/engine.ns.io-client/build/engine.ns.io-client.js