pve-manager/www/manager6/Makefile
Thomas Lamprecht c15d821e0a enable eslint on build
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-19 17:42:21 +02:00

308 lines
7.5 KiB
Makefile

include ../../defines.mk
JSSRC= \
Parser.js \
StateProvider.js \
Utils.js \
Toolkit.js \
VNCConsole.js \
button/ConsoleButton.js \
button/Revert.js \
button/Split.js \
controller/StorageEdit.js \
data/PermPathStore.js \
data/ResourceStore.js \
data/model/RRDModels.js \
form/ACMEAPISelector.js \
form/ACMEAccountSelector.js \
form/ACMEPluginSelector.js \
form/AgentFeatureSelector.js \
form/BackupModeSelector.js \
form/BandwidthSelector.js \
form/Boolean.js \
form/BridgeSelector.js \
form/BusTypeSelector.js \
form/CPUModelSelector.js \
form/CacheTypeSelector.js \
form/CalendarEvent.js \
form/CephPoolSelector.js \
form/CompressionSelector.js \
form/ContentTypeSelector.js \
form/ControllerSelector.js \
form/DayOfWeekSelector.js \
form/DiskFormatSelector.js \
form/DiskStorageSelector.js \
form/EmailNotificationSelector.js \
form/FileSelector.js \
form/FirewallPolicySelector.js \
form/GlobalSearchField.js \
form/GroupSelector.js \
form/GuestIDSelector.js \
form/HotplugFeatureSelector.js \
form/IPProtocolSelector.js \
form/IPRefSelector.js \
form/MDevSelector.js \
form/MemoryField.js \
form/NetworkCardSelector.js \
form/NodeSelector.js \
form/PCISelector.js \
form/PermPathSelector.js \
form/PoolSelector.js \
form/PrivilegesSelector.js \
form/QemuBiosSelector.js \
form/SDNControllerSelector.js \
form/SDNZoneSelector.js \
form/SDNVnetSelector.js \
form/SDNIpamSelector.js \
form/SDNDnsSelector.js \
form/ScsiHwSelector.js \
form/SecurityGroupSelector.js \
form/SnapshotSelector.js \
form/SpiceEnhancementSelector.js \
form/StorageSelector.js \
form/TFASelector.js \
form/TokenSelector.js \
form/USBSelector.js \
form/UserSelector.js \
form/VLanField.js \
form/VMCPUFlagSelector.js \
form/VMSelector.js \
form/VNCKeyboardSelector.js \
form/ViewSelector.js \
form/iScsiProviderSelector.js \
grid/BackupView.js \
grid/FirewallAliases.js \
grid/FirewallOptions.js \
grid/FirewallRules.js \
grid/PoolMembers.js \
grid/Replication.js \
grid/ResourceGrid.js \
panel/ConfigPanel.js \
panel/HealthWidget.js \
panel/IPSet.js \
panel/NotesView.js \
panel/RunningChart.js \
panel/StatusPanel.js \
panel/GuestStatusView.js \
panel/GuestSummary.js \
panel/TemplateStatusView.js \
tree/ResourceTree.js \
tree/SnapshotTree.js \
window/Backup.js \
window/BackupConfig.js \
window/BulkAction.js \
window/CephInstall.js \
window/Clone.js \
window/FirewallEnableEdit.js \
window/FirewallLograteEdit.js \
window/LoginWindow.js \
window/Migrate.js \
window/NotesEdit.js \
window/Prune.js \
window/Restore.js \
window/SafeDestroyGuest.js \
window/Settings.js \
window/Snapshot.js \
window/StartupEdit.js \
window/Wizard.js \
ha/Fencing.js \
ha/GroupEdit.js \
ha/GroupSelector.js \
ha/Groups.js \
ha/ResourceEdit.js \
ha/Resources.js \
ha/Status.js \
ha/StatusView.js \
dc/ACLView.js \
dc/ACMEClusterView.js \
dc/ACMEPluginEdit.js \
dc/AuthEditBase.js \
dc/AuthEditAD.js \
dc/AuthEditLDAP.js \
dc/AuthView.js \
dc/Backup.js \
dc/Cluster.js \
dc/ClusterEdit.js \
dc/Config.js \
dc/CorosyncLinkEdit.js \
dc/GroupEdit.js \
dc/GroupView.js \
dc/Guests.js \
dc/Health.js \
dc/Log.js \
dc/NodeView.js \
dc/OptionView.js \
dc/PermissionView.js \
dc/PoolEdit.js \
dc/PoolView.js \
dc/RoleEdit.js \
dc/RoleView.js \
dc/SecurityGroups.js \
dc/StorageView.js \
dc/Summary.js \
dc/Support.js \
dc/SyncWindow.js \
dc/TFAEdit.js \
dc/Tasks.js \
dc/TokenEdit.js \
dc/TokenView.js \
dc/UserEdit.js \
dc/UserView.js \
dc/MetricServerView.js \
lxc/CmdMenu.js \
lxc/Config.js \
lxc/CreateWizard.js \
lxc/DNS.js \
lxc/FeaturesEdit.js \
lxc/MPEdit.js \
lxc/MPResize.js \
lxc/Network.js \
lxc/Options.js \
lxc/ResourceEdit.js \
lxc/Resources.js \
menu/MenuItem.js \
menu/TemplateMenu.js \
ceph/CephInstallWizard.js \
ceph/Config.js \
ceph/Crush.js \
ceph/FS.js \
ceph/Log.js \
ceph/Monitor.js \
ceph/OSD.js \
ceph/Pool.js \
ceph/ServiceList.js \
ceph/Services.js \
ceph/Status.js \
ceph/StatusDetail.js \
node/ACME.js \
node/Certificates.js \
node/CmdMenu.js \
node/Config.js \
node/Directory.js \
node/LVM.js \
node/LVMThin.js \
node/StatusView.js \
node/Subscription.js \
node/Summary.js \
node/ZFS.js \
pool/Config.js \
pool/StatusView.js \
pool/Summary.js \
qemu/AgentIPView.js \
qemu/AudioEdit.js \
qemu/BootOrderEdit.js \
qemu/CDEdit.js \
qemu/CIDriveEdit.js \
qemu/CloudInit.js \
qemu/CmdMenu.js \
qemu/Config.js \
qemu/CreateWizard.js \
qemu/DisplayEdit.js \
qemu/HDEdit.js \
qemu/HDEfi.js \
qemu/HDMove.js \
qemu/HDResize.js \
qemu/HardwareView.js \
qemu/IPConfigEdit.js \
qemu/KeyboardEdit.js \
qemu/MachineEdit.js \
qemu/MemoryEdit.js \
qemu/Monitor.js \
qemu/NetworkEdit.js \
qemu/OSDefaults.js \
qemu/OSTypeEdit.js \
qemu/Options.js \
qemu/PCIEdit.js \
qemu/ProcessorEdit.js \
qemu/QemuBiosEdit.js \
qemu/RNGEdit.js \
qemu/SSHKey.js \
qemu/ScsiHwEdit.js \
qemu/SerialEdit.js \
qemu/Smbios1Edit.js \
qemu/SystemEdit.js \
qemu/USBEdit.js \
sdn/Browser.js \
sdn/ControllerView.js \
sdn/Status.js \
sdn/StatusView.js \
sdn/VnetEdit.js \
sdn/VnetView.js \
sdn/VnetPanel.js \
sdn/SubnetEdit.js \
sdn/SubnetView.js \
sdn/ZoneContentView.js \
sdn/ZoneView.js \
sdn/OptionsPanel.js \
sdn/controllers/Base.js \
sdn/controllers/EvpnEdit.js \
sdn/controllers/BgpEdit.js \
sdn/IpamView.js \
sdn/ipams/Base.js \
sdn/ipams/NetboxEdit.js \
sdn/ipams/PVEIpamEdit.js \
sdn/ipams/PhpIpamEdit.js \
sdn/DnsView.js \
sdn/dns/Base.js \
sdn/dns/PowerdnsEdit.js \
sdn/zones/Base.js \
sdn/zones/EvpnEdit.js \
sdn/zones/QinQEdit.js \
sdn/zones/SimpleEdit.js \
sdn/zones/VlanEdit.js \
sdn/zones/VxlanEdit.js \
storage/ContentView.js \
storage/BackupView.js \
storage/Base.js \
storage/Browser.js \
storage/CIFSEdit.js \
storage/CephFSEdit.js \
storage/DirEdit.js \
storage/GlusterFsEdit.js \
storage/ImageView.js \
storage/IScsiEdit.js \
storage/LVMEdit.js \
storage/LvmThinEdit.js \
storage/NFSEdit.js \
storage/PBSEdit.js \
storage/RBDEdit.js \
storage/StatusView.js \
storage/Summary.js \
storage/TemplateView.js \
storage/ZFSEdit.js \
storage/ZFSPoolEdit.js \
Workspace.js \
# end of JSSRC list
all: pvemanagerlib.js
.lint-incremental: ${JSSRC}
eslint $?
touch "$@"
.PHONY: lint check
check: lint
lint: ${JSSRC}
eslint --strict ${JSSRC}
pvemanagerlib.js: .lint-incremental OnlineHelpInfo.js ${JSSRC}
cat OnlineHelpInfo.js ${JSSRC} >$@.tmp
mv $@.tmp $@
OnlineHelpInfo.js: /usr/bin/asciidoc-pve
/usr/bin/asciidoc-pve scan-extjs ${JSSRC} >$@.tmp
mv $@.tmp $@
.PHONY: install
install: pvemanagerlib.js
install -d ${WWWJSDIR}
install -m 0644 pvemanagerlib.js ${WWWJSDIR}
.PHONY: clean
clean:
find . -name '*~' -exec rm {} ';'
rm -rf pvemanagerlib.js OnlineHelpInfo.js .lint-incremental