Add makefile targets for the ext js framework in version 5.1 (gpl)

This commit only installs the required javascript / css files for ext js 5.1
in /usr/share/pve-manager/ext5, but does not use it by default, as we have to sort out
the upgrade issues between 4.0 and 5.1 before.

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
This commit is contained in:
Emmanuel Kasper 2015-03-30 13:47:17 +02:00 committed by Dietmar Maurer
parent 6994f51842
commit af2a8bb227
4 changed files with 37 additions and 1 deletions

View File

@ -18,6 +18,7 @@ WWWROOTDIR=${WWWBASEDIR}/root
WWWLOCALEDIR=${WWWBASEDIR}/locale
WWWIMAGEDIR=${WWWBASEDIR}/images
WWWEXT4DIR=${WWWBASEDIR}/ext4
WWWEXT5DIR=${WWWBASEDIR}/ext5
WWWTOUCHDIR=${WWWBASEDIR}/touch
WWWCSSDIR=${WWWBASEDIR}/css
WWWJSDIR=${WWWBASEDIR}/js

View File

@ -1,4 +1,4 @@
SUBDIRS = images ext4 css manager bootstrap touch mobile
SUBDIRS = images ext4 ext5 css manager bootstrap touch mobile
all: ${SUBDIRS}

1
www/ext5/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
extjs

34
www/ext5/Makefile Normal file
View File

@ -0,0 +1,34 @@
include ../../defines.mk
EXTJSDIR=ext-5.1.0
EXTJSSRC=${EXTJSDIR}-gpl.zip
EXTDATA= \
extjs/build/ext-all.js \
extjs/build/ext-all-debug.js \
extjs/build/bootstrap.js
${EXTDATA}: ${EXTJSSRC}
rm -rf ${EXTJSDIR} extjs
unzip -x ${EXTJSSRC}
mv ${EXTJSDIR} extjs
touch ${EXTDATA}
all: ${EXTDATA}
.PHONY: install
install: ${EXTDATA}
install -d ${WWWEXT5DIR}
install -m 0644 ${EXTDATA} ${WWWEXT5DIR}
cp -a extjs/build/packages ${WWWEXT5DIR}
install -d ${WWWEXT5DIR}/locale
cp -a extjs/build/packages/ext-locale/build/* ${WWWEXT5DIR}/locale/
chown -R www-data:www-data ${WWWEXT5DIR}
.PHONY: distclean
distclean: clean
.PHONY: clean
clean:
rm -rf *~ ${EXTJSDIR} extjs