2019-01-31 12:43:09 +00:00
|
|
|
include ../defines.mk
|
|
|
|
|
|
|
|
IMAGES := \
|
|
|
|
images/logo-128.png \
|
|
|
|
images/proxmox_logo.png
|
|
|
|
|
2018-12-04 16:53:10 +00:00
|
|
|
JSSRC= \
|
2020-05-20 10:15:33 +00:00
|
|
|
form/UserSelector.js \
|
2020-05-29 08:53:40 +00:00
|
|
|
form/RemoteSelector.js \
|
|
|
|
form/DataStoreSelector.js \
|
2020-07-21 17:32:25 +00:00
|
|
|
form/CalendarEvent.js \
|
2020-07-25 18:10:06 +00:00
|
|
|
form/PermissionPathSelector.js \
|
2020-07-09 11:38:20 +00:00
|
|
|
data/RunningTasksStore.js \
|
2020-07-09 11:38:21 +00:00
|
|
|
button/TaskButton.js \
|
2020-05-18 12:18:38 +00:00
|
|
|
config/UserView.js \
|
2020-05-26 10:23:25 +00:00
|
|
|
config/RemoteView.js \
|
2020-05-20 10:15:37 +00:00
|
|
|
config/ACLView.js \
|
2020-05-29 08:53:42 +00:00
|
|
|
config/SyncView.js \
|
2020-06-05 08:11:52 +00:00
|
|
|
config/DataStoreConfig.js \
|
2020-05-18 12:18:38 +00:00
|
|
|
window/UserEdit.js \
|
2020-08-03 09:56:25 +00:00
|
|
|
window/UserPassword.js \
|
2020-05-26 10:23:25 +00:00
|
|
|
window/RemoteEdit.js \
|
2020-05-29 08:53:41 +00:00
|
|
|
window/SyncJobEdit.js \
|
2020-05-20 10:15:37 +00:00
|
|
|
window/ACLEdit.js \
|
2020-06-05 08:11:52 +00:00
|
|
|
window/DataStoreEdit.js \
|
2020-06-16 09:13:34 +00:00
|
|
|
window/CreateDirectory.js \
|
2020-07-03 15:19:59 +00:00
|
|
|
window/ZFSCreate.js \
|
2020-06-23 10:09:54 +00:00
|
|
|
window/FileBrowser.js \
|
2020-06-23 10:09:48 +00:00
|
|
|
window/BackupFileDownloader.js \
|
2020-06-09 08:01:14 +00:00
|
|
|
dashboard/DataStoreStatistics.js \
|
2020-06-12 11:34:05 +00:00
|
|
|
dashboard/LongestTasks.js \
|
|
|
|
dashboard/RunningTasks.js \
|
|
|
|
dashboard/TaskSummary.js \
|
2018-12-05 11:39:40 +00:00
|
|
|
Utils.js \
|
2020-06-25 12:53:05 +00:00
|
|
|
ZFSList.js \
|
2020-06-16 09:13:34 +00:00
|
|
|
DirectoryList.js \
|
2019-01-30 14:14:20 +00:00
|
|
|
LoginView.js \
|
2018-12-04 16:58:40 +00:00
|
|
|
VersionInfo.js \
|
2019-01-22 10:48:00 +00:00
|
|
|
SystemConfiguration.js \
|
|
|
|
Subscription.js \
|
2020-03-26 12:23:28 +00:00
|
|
|
DataStorePrune.js \
|
2020-05-26 10:19:04 +00:00
|
|
|
DataStoreStatistic.js \
|
2019-12-20 11:46:09 +00:00
|
|
|
DataStoreContent.js \
|
2020-05-20 10:15:38 +00:00
|
|
|
DataStorePanel.js \
|
2020-04-30 10:11:08 +00:00
|
|
|
ServerStatus.js \
|
2019-01-25 12:10:55 +00:00
|
|
|
ServerAdministration.js \
|
2019-12-18 16:29:05 +00:00
|
|
|
Dashboard.js \
|
2019-01-22 10:48:00 +00:00
|
|
|
NavigationTree.js \
|
2018-12-04 16:53:10 +00:00
|
|
|
Application.js \
|
|
|
|
MainView.js
|
|
|
|
|
2019-12-16 17:16:05 +00:00
|
|
|
all: js/proxmox-backup-gui.js css/ext6-pbs.css
|
2018-12-04 16:53:10 +00:00
|
|
|
|
2019-01-31 12:36:33 +00:00
|
|
|
js:
|
|
|
|
mkdir js
|
|
|
|
|
2020-09-02 12:22:36 +00:00
|
|
|
OnlineHelpInfo.js:
|
|
|
|
$(MAKE) -C ../docs onlinehelpinfo
|
|
|
|
mv ../docs/output/scanrefs/OnlineHelpInfo.js .
|
|
|
|
|
2019-01-31 12:36:33 +00:00
|
|
|
js/proxmox-backup-gui.js: js OnlineHelpInfo.js ${JSSRC}
|
2019-01-25 11:37:01 +00:00
|
|
|
cat OnlineHelpInfo.js ${JSSRC} >$@.tmp
|
2018-12-04 16:53:10 +00:00
|
|
|
mv $@.tmp $@
|
|
|
|
|
2020-07-14 05:42:55 +00:00
|
|
|
.PHONY: lint
|
|
|
|
lint: ${JSSRC}
|
|
|
|
eslint ${JSSRC}
|
|
|
|
|
2018-12-04 16:53:10 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
find . -name '*~' -exec rm {} ';'
|
2019-01-31 12:36:33 +00:00
|
|
|
rm -rf js
|
2019-01-31 12:43:09 +00:00
|
|
|
|
2020-04-29 09:59:31 +00:00
|
|
|
install: js/proxmox-backup-gui.js css/ext6-pbs.css index.hbs
|
2019-01-31 12:43:09 +00:00
|
|
|
install -dm755 $(DESTDIR)$(JSDIR)
|
2020-04-29 09:59:31 +00:00
|
|
|
install -m644 index.hbs $(DESTDIR)$(JSDIR)/
|
2019-01-31 12:43:09 +00:00
|
|
|
install -dm755 $(DESTDIR)$(JSDIR)/js
|
|
|
|
install -m644 js/proxmox-backup-gui.js $(DESTDIR)$(JSDIR)/js/
|
2019-12-16 17:16:05 +00:00
|
|
|
install -dm755 $(DESTDIR)$(JSDIR)/css
|
|
|
|
install -m644 css/ext6-pbs.css $(DESTDIR)$(JSDIR)/css/
|
2019-01-31 12:43:09 +00:00
|
|
|
install -dm755 $(DESTDIR)$(JSDIR)/images
|
|
|
|
$(foreach i,$(IMAGES), \
|
|
|
|
install -m644 $(i) $(DESTDIR)$(JSDIR)/images/ ;)
|