22 lines
362 B
Makefile
22 lines
362 B
Makefile
DESTDIR=./
|
|
INSTALL_LOCATION=$(DESTDIR)/opt/pitaya
|
|
ELECTRON_ARCH=x64
|
|
|
|
ifeq ($(DEB_TARGET_ARCH), i386)
|
|
ELECTRON_ARCH=ia32
|
|
endif
|
|
|
|
all: build
|
|
|
|
clean:
|
|
rm -rf node_modules
|
|
rm -rf dist
|
|
|
|
build:
|
|
npm install --ignore-scripts
|
|
ARCH=$(ELECTRON_ARCH) npm run build
|
|
|
|
install:
|
|
mkdir -p $(INSTALL_LOCATION)
|
|
cp -r build/pitaya-linux-$(ELECTRON_ARCH)/* $(INSTALL_LOCATION)/
|