proxmox-backup/www/Makefile

94 lines
2.3 KiB
Makefile
Raw Normal View History

include ../defines.mk
IMAGES := \
images/logo-128.png \
images/proxmox_logo.png
2018-12-04 16:53:10 +00:00
JSSRC= \
form/UserSelector.js \
form/RemoteSelector.js \
form/DataStoreSelector.js \
form/CalendarEvent.js \
form/PermissionPathSelector.js \
data/RunningTasksStore.js \
button/TaskButton.js \
config/UserView.js \
config/RemoteView.js \
config/ACLView.js \
config/SyncView.js \
config/VerifyView.js \
window/ACLEdit.js \
window/BackupFileDownloader.js \
window/CreateDirectory.js \
window/DataStoreEdit.js \
window/FileBrowser.js \
window/NotesEdit.js \
window/RemoteEdit.js \
window/SyncJobEdit.js \
window/UserEdit.js \
window/UserPassword.js \
window/VerifyJobEdit.js \
window/ZFSCreate.js \
dashboard/DataStoreStatistics.js \
dashboard/LongestTasks.js \
dashboard/RunningTasks.js \
dashboard/TaskSummary.js \
Utils.js \
ZFSList.js \
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 \
DataStoreSummary.js \
DataStoreNotes.js \
DataStorePruneAndGC.js \
2020-03-26 12:23:28 +00:00
DataStorePrune.js \
2019-12-20 11:46:09 +00:00
DataStoreContent.js \
DataStorePanel.js \
ServerStatus.js \
2019-01-25 12:10:55 +00:00
ServerAdministration.js \
Dashboard.js \
2019-01-22 10:48:00 +00:00
NavigationTree.js \
2018-12-04 16:53:10 +00:00
Application.js \
MainView.js
all: js/proxmox-backup-gui.js css/ext6-pbs.css
2018-12-04 16:53:10 +00:00
js:
mkdir js
.PHONY: OnlineHelpInfo.js
OnlineHelpInfo.js:
$(MAKE) -C ../docs onlinehelpinfo
mv ../docs/output/scanrefs/OnlineHelpInfo.js .
js/proxmox-backup-gui.js: .lint-incremental js OnlineHelpInfo.js ${JSSRC}
cat OnlineHelpInfo.js ${JSSRC} >$@.tmp
2018-12-04 16:53:10 +00:00
mv $@.tmp $@
.PHONY: check
check:
eslint ${JSSRC}
touch ".lint-incremental"
.lint-incremental: ${JSSRC}
eslint $?
touch "$@"
2018-12-04 16:53:10 +00:00
.PHONY: clean
clean:
find . -name '*~' -exec rm {} ';'
rm -rf js .lint-incremental
install: js/proxmox-backup-gui.js css/ext6-pbs.css index.hbs
install -dm755 $(DESTDIR)$(JSDIR)
install -m644 index.hbs $(DESTDIR)$(JSDIR)/
install -dm755 $(DESTDIR)$(JSDIR)/js
install -m644 js/proxmox-backup-gui.js $(DESTDIR)$(JSDIR)/js/
install -dm755 $(DESTDIR)$(JSDIR)/css
install -m644 css/ext6-pbs.css $(DESTDIR)$(JSDIR)/css/
install -dm755 $(DESTDIR)$(JSDIR)/images
$(foreach i,$(IMAGES), \
install -m644 $(i) $(DESTDIR)$(JSDIR)/images/ ;)