forked from azer/kaktus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 1.61 KB
/
Makefile
File metadata and controls
43 lines (32 loc) · 1.61 KB
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
PID=/tmp/kaktus-dev.pid
.PHONY: all
.PHONY: build
build: build-js build-css
build-js:
@echo " 🛠 Building..."
@./node_modules/.bin/browserify src/app/index.js > build/min.js
build-css:
@echo " 🛠 Building CSS..."
@cat src/app/views/fonts.css src/app/views/style.css src/app/views/top-bar/style.css src/app/views/title-bar/style.css src/app/views/search-results/style.css src/app/views/preview/style.css src/app/views/webviews/style.css src/app/views/find-in-page/style.css src/app/views/title-bar/spinner.css > build/style.css
watch-css:
@echo " 👓 Watching for changes (CSS)..."
@fswatch -o src/app/views/*.css src/app/views/**/*.css | xargs -n1 -I{} make build-css
watch-js:
@echo " 👓 Watching for changes (JS)..."
@./node_modules/.bin/watchify src/app/index.js -o build/dev.js --debug --verbose
start:
@echo " ▶️ Starting"
@DEV_MODE=ON ./node_modules/.bin/electron . & echo $$! > $(PID)
stop:
@echo " ⏹ Stopping"
@-touch $(PID)
@-kill `cat $(PID)` 2> /dev/null || true
clean:
@rm -rf dist
osx: build
@./node_modules/.bin/electron-packager . Kaktüs --out=dist/osx --platform=darwin --arch=x64 --icon=kaktus.icns --ignore=dist --ignore=README.md --ignore=.gitignore
linux: build
@./node_modules/.bin/electron-packager . Kaktüs --out=dist/linux --platform=linux --arch=x64 --icon=kaktus.icns --ignore=dist --ignore=README.md --ignore=.gitignore
win: build
@export PATH=$PATH:/Applications/Wine.app/Contents/Resources/bin
@./node_modules/.bin/electron-packager . Kaktüs --out=dist/win32 --platform=win32 --arch=x64 --icon=kaktus.icns --ignore=dist --ignore=README.md --ignore=.gitignore