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

2
debian/install vendored
View File

@ -5,4 +5,4 @@ target/release/proxmox-backup-client /usr/sbin
target/release/catar /usr/sbin
www/images/logo-128.png /usr/share/javascript/proxmox-backup/images/
www/images/proxmox_logo.png /usr/share/javascript/proxmox-backup/images/
www/proxmox-backup-gui.js /usr/share/javascript/proxmox-backup/js/
www/js/proxmox-backup-gui.js /usr/share/javascript/proxmox-backup/js/

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