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-11-06 07:24:30 +00:00
|
|
|
Utils.js \
|
2020-05-20 10:15:33 +00:00
|
|
|
form/UserSelector.js \
|
2020-10-28 10:07:27 +00:00
|
|
|
form/TokenSelector.js \
|
2020-11-06 12:01:56 +00:00
|
|
|
form/AuthidSelector.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-10-22 09:40:43 +00:00
|
|
|
config/TokenView.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-10-20 09:10:08 +00:00
|
|
|
config/VerifyView.js \
|
2020-10-28 17:25:47 +00:00
|
|
|
window/ACLEdit.js \
|
|
|
|
window/BackupFileDownloader.js \
|
2020-11-06 18:47:00 +00:00
|
|
|
window/BackupGroupChangeOwner.js \
|
2020-10-28 17:25:47 +00:00
|
|
|
window/CreateDirectory.js \
|
|
|
|
window/DataStoreEdit.js \
|
|
|
|
window/FileBrowser.js \
|
|
|
|
window/NotesEdit.js \
|
|
|
|
window/RemoteEdit.js \
|
2020-11-06 16:49:22 +00:00
|
|
|
window/NotifyOptions.js \
|
2020-10-28 17:25:47 +00:00
|
|
|
window/SyncJobEdit.js \
|
2020-05-18 12:18:38 +00:00
|
|
|
window/UserEdit.js \
|
2020-08-03 09:56:25 +00:00
|
|
|
window/UserPassword.js \
|
2020-10-22 09:40:43 +00:00
|
|
|
window/TokenEdit.js \
|
2020-10-20 09:10:09 +00:00
|
|
|
window/VerifyJobEdit.js \
|
2020-07-03 15:19:59 +00:00
|
|
|
window/ZFSCreate.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 \
|
2020-10-30 14:02:15 +00:00
|
|
|
panel/Tasks.js \
|
2020-11-04 14:35:08 +00:00
|
|
|
panel/XtermJsConsole.js \
|
2020-11-06 07:24:30 +00:00
|
|
|
panel/AccessControl.js \
|
2020-11-10 09:15:44 +00:00
|
|
|
panel/StorageAndDisks.js \
|
2020-11-10 09:18:06 +00:00
|
|
|
panel/UsageChart.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-11-06 07:24:30 +00:00
|
|
|
datastore/Summary.js \
|
|
|
|
datastore/Notes.js \
|
|
|
|
datastore/PruneAndGC.js \
|
|
|
|
datastore/Prune.js \
|
|
|
|
datastore/Content.js \
|
2020-11-06 16:51:52 +00:00
|
|
|
datastore/OptionView.js \
|
2020-11-06 07:24:30 +00:00
|
|
|
datastore/Panel.js \
|
2020-11-09 15:01:29 +00:00
|
|
|
datastore/DataStoreListSummary.js \
|
|
|
|
datastore/DataStoreList.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:41:03 +00:00
|
|
|
.PHONY: OnlineHelpInfo.js
|
2020-09-02 12:22:36 +00:00
|
|
|
OnlineHelpInfo.js:
|
|
|
|
$(MAKE) -C ../docs onlinehelpinfo
|
|
|
|
mv ../docs/output/scanrefs/OnlineHelpInfo.js .
|
|
|
|
|
2020-10-01 11:12:44 +00:00
|
|
|
js/proxmox-backup-gui.js: .lint-incremental 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-10-01 11:12:44 +00:00
|
|
|
.PHONY: check
|
|
|
|
check:
|
2020-11-12 08:50:48 +00:00
|
|
|
eslint --strict ${JSSRC}
|
2020-10-01 11:12:44 +00:00
|
|
|
touch ".lint-incremental"
|
|
|
|
|
|
|
|
.lint-incremental: ${JSSRC}
|
|
|
|
eslint $?
|
|
|
|
touch "$@"
|
2020-07-14 05:42:55 +00:00
|
|
|
|
2018-12-04 16:53:10 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2020-10-01 11:12:44 +00:00
|
|
|
find . -name '*~' -exec rm {} ';'
|
|
|
|
rm -rf js .lint-incremental
|
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/ ;)
|