-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (33 loc) · 1.23 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Simple Makefile to experiment and develop
# my "GMusicBrowser-FullScreen-WebApp" program
# https://github.com/Naereen/GMusicBrowser-FullScreen-WebApp
SHELL=/usr/bin/env /bin/bash
# TODO change here, if you prefer firefox over chromium
main: open_chromium run
run:
FLASK_APP=start_ui.py flask run --host=0.0.0.0 --port=9999
debug:
export FLASK_DEBUG=1
FLASK_APP=start_ui.py flask run --host=0.0.0.0 --port=9999
# Open the page in various browser
open_firefox:
firefox http://0.0.0.0:9999/ &
open_chromium:
chromium-browser http://0.0.0.0:9999/ &
open_macosx:
open http://0.0.0.0:9999/ &
# Test and install the .desktop file
desktop-validate:
desktop-file-validate gmusicbrowser-fullscreen-webapp.desktop
desktop-install:
sudo desktop-file-install gmusicbrowser-fullscreen-webapp.desktop
# Test
test_start:
./update_ui.py start "Titre de la chanson" "Artiste de la chanson" "Album de la chanson" "Année : 2018" "Disque 1" "1" "test.mp3" "test.jpg"
test_stop:
./update_ui.py stop "Titre de la chanson" "Artiste de la chanson" "Album de la chanson" "Année : 2018" "Disque 1" "1" "test.mp3" "test.jpg"
clean:
-rm -vfr __pycache__/ *.pyc
send: send_zamok
send_zamok:
CP --exclude=.git ./ ${Szam}publis/GMusicBrowser-FullScreen-WebApp.git/