www: build proxmox-backup-gui.js into the js/ subdir

The server expects an images/ subdir and a js/ subdir, so we
should also compile our files using the same structure.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-01-31 13:36:33 +01:00
parent 8e4df103dd
commit 9fa03fa2d3
2 changed files with 7 additions and 5 deletions

View File

@ -11,14 +11,16 @@ JSSRC= \
Application.js \
MainView.js
all: proxmox-backup-gui.js
all: js/proxmox-backup-gui.js
proxmox-backup-gui.js: OnlineHelpInfo.js ${JSSRC}
js:
mkdir js
js/proxmox-backup-gui.js: js OnlineHelpInfo.js ${JSSRC}
cat OnlineHelpInfo.js ${JSSRC} >$@.tmp
mv $@.tmp $@
.PHONY: clean
clean:
find . -name '*~' -exec rm {} ';'
rm -f proxmox-backup-gui.js
rm -rf js