-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
164 lines (152 loc) · 4.35 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
include ../defines.mk
ESLINT ?= $(if $(shell command -v pve-eslint), pve-eslint, eslint)
IMAGES := \
images/icon-tape.svg \
images/icon-tape-drive.svg \
images/logo-128.png \
images/proxmox_logo.png
TAPE_UI_FILES= \
tape/form/AllocationSelector.js \
tape/form/ChangerSelector.js \
tape/form/DriveSelector.js \
tape/form/PoolSelector.js \
tape/form/RetentionSelector.js \
tape/form/TapeDevicePathSelector.js \
tape/form/KeySelector.js \
tape/window/ChangerEdit.js \
tape/window/DriveEdit.js \
tape/window/Erase.js \
tape/window/EncryptionEdit.js \
tape/window/LabelMedia.js \
tape/window/MediaRemoveWindow.js \
tape/window/PoolEdit.js \
tape/window/TapeBackup.js \
tape/window/TapeBackupJob.js \
tape/window/TapeRestore.js \
tape/BackupOverview.js \
tape/ChangerConfig.js \
tape/ChangerStatus.js \
tape/DriveConfig.js \
tape/DriveStatus.js \
tape/EncryptionKeys.js \
tape/PoolConfig.js \
tape/TapeInventory.js \
tape/BackupJobs.js \
tape/TapeManagement.js
JSSRC= \
Utils.js \
Schema.js \
form/TokenSelector.js \
form/AuthidSelector.js \
form/RemoteSelector.js \
form/RemoteTargetSelector.js \
form/DataStoreSelector.js \
form/NamespaceSelector.js \
form/NamespaceMaxDepth.js \
form/CalendarEvent.js \
form/PermissionPathSelector.js \
form/GroupSelector.js \
form/GroupFilter.js \
form/VerifyOutdatedAfter.js \
data/RunningTasksStore.js \
button/TaskButton.js \
panel/PrunePanel.js \
config/UserView.js \
config/TokenView.js \
config/RemoteView.js \
config/TrafficControlView.js \
config/ACLView.js \
config/SyncView.js \
config/VerifyView.js \
config/PruneView.js \
config/GCView.js \
config/WebauthnView.js \
config/CertificateView.js \
config/NodeOptionView.js \
config/MetricServerView.js \
config/NotificationConfigView.js \
config/PruneAndGC.js \
window/ACLEdit.js \
window/BackupGroupChangeOwner.js \
window/CreateDirectory.js \
window/DataStoreEdit.js \
window/NamespaceEdit.js \
window/MaintenanceOptions.js \
window/NotesEdit.js \
window/NotificationMatcherOverride.js \
window/RemoteEdit.js \
window/TrafficControlEdit.js \
window/NotifyOptions.js \
window/SyncJobEdit.js \
window/PruneJobEdit.js \
window/GCJobEdit.js \
window/UserEdit.js \
window/Settings.js \
window/TokenEdit.js \
window/VerifyJobEdit.js \
window/VerifyAll.js \
window/ZFSCreate.js \
window/InfluxDbEdit.js \
window/DatastoreRepoInfo.js \
dashboard/DataStoreStatistics.js \
dashboard/LongestTasks.js \
dashboard/RunningTasks.js \
dashboard/TaskSummary.js \
panel/XtermJsConsole.js \
panel/AccessControl.js \
panel/StorageAndDisks.js \
panel/UsageChart.js \
panel/NodeInfo.js \
ZFSList.js \
DirectoryList.js \
LoginView.js \
VersionInfo.js \
SystemConfiguration.js \
Subscription.js \
datastore/Summary.js \
datastore/Notes.js \
datastore/Prune.js \
datastore/Content.js \
datastore/OptionView.js \
datastore/Panel.js \
datastore/DataStoreListSummary.js \
datastore/DataStoreList.js \
ServerStatus.js \
ServerAdministration.js \
NodeNotes.js \
Dashboard.js \
${TAPE_UI_FILES} \
NavigationTree.js \
Application.js \
MainView.js
all: js/proxmox-backup-gui.js css/ext6-pbs.css
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} >[email protected]
mv [email protected] $@
.PHONY: check
check:
$(ESLINT) --strict ${JSSRC}
touch ".lint-incremental"
.lint-incremental: ${JSSRC}
$(ESLINT) $?
touch "$@"
.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/ ;)