pitaya-launcher/Makefile

22 lines
362 B
Makefile
Raw Permalink Normal View History

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
clean:
rm -rf node_modules
rm -rf dist
2015-10-22 13:49:38 +02:00
build:
npm install --ignore-scripts
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)/