2015-10-22 13:49:38 +02:00
|
|
|
DESTDIR=./
|
|
|
|
INSTALL_LOCATION=$(DESTDIR)/opt/pitaya
|
|
|
|
ELECTRON_ARCH=x64
|
2015-10-17 11:34:37 +02:00
|
|
|
|
2015-10-22 13:49:38 +02:00
|
|
|
ifeq ($(DEB_TARGET_ARCH), i386)
|
|
|
|
ELECTRON_ARCH=ia32
|
|
|
|
endif
|
2015-10-17 11:34:37 +02:00
|
|
|
|
2015-10-22 13:49:38 +02:00
|
|
|
all: build
|
2015-10-17 11:34:37 +02:00
|
|
|
|
2017-07-24 18:38:32 +02:00
|
|
|
clean:
|
|
|
|
rm -rf node_modules
|
|
|
|
rm -rf dist
|
|
|
|
|
2015-10-22 13:49:38 +02:00
|
|
|
build:
|
|
|
|
npm install --ignore-scripts
|
2016-04-15 17:02:22 +02:00
|
|
|
ARCH=$(ELECTRON_ARCH) npm run build
|
2015-10-17 11:34:37 +02:00
|
|
|
|
2015-10-22 13:49:38 +02:00
|
|
|
install:
|
|
|
|
mkdir -p $(INSTALL_LOCATION)
|
|
|
|
cp -r build/pitaya-linux-$(ELECTRON_ARCH)/* $(INSTALL_LOCATION)/
|