Commit af2a8bb2 authored by Emmanuel Kasper's avatar Emmanuel Kasper Committed by Dietmar Maurer

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: 's avatarEmmanuel Kasper <e.kasper@proxmox.com>
parent 6994f518
......@@ -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
SUBDIRS = images ext4 css manager bootstrap touch mobile
SUBDIRS = images ext4 ext5 css manager bootstrap touch mobile
all: ${SUBDIRS}
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment