mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-21 19:55:35 +00:00
add css and image directory to packaging
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
d0af658440
commit
28de30b20e
18
Makefile
18
Makefile
@ -1,18 +1,8 @@
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
PACKAGE=proxmox-widget-toolkit
|
||||
include defines.mk
|
||||
|
||||
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||
GITVERSION:=$(shell git rev-parse HEAD)
|
||||
|
||||
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
||||
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
||||
|
||||
DESTDIR=
|
||||
|
||||
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
||||
|
||||
WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE}
|
||||
SUBDIRS= css images
|
||||
|
||||
JSSRC= \
|
||||
Utils.js \
|
||||
@ -58,7 +48,8 @@ JSSRC= \
|
||||
node/TimeEdit.js \
|
||||
node/TimeView.js
|
||||
|
||||
all:
|
||||
all: ${SUBDIRS}
|
||||
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done
|
||||
|
||||
${BUILDDIR}:
|
||||
rm -rf ${BUILDDIR}
|
||||
@ -90,6 +81,7 @@ proxmoxlib.js: ${JSSRC}
|
||||
install: proxmoxlib.js
|
||||
install -d -m 755 ${WWWBASEDIR}
|
||||
install -m 0644 proxmoxlib.js ${WWWBASEDIR}
|
||||
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
|
||||
|
||||
.PHONY: upload
|
||||
upload: ${DEB}
|
||||
|
13
css/Makefile
Normal file
13
css/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
include ../defines.mk
|
||||
|
||||
CSS=
|
||||
|
||||
all:
|
||||
|
||||
.PHONY: install
|
||||
install: ${CSS}
|
||||
install -d ${WWWCSSDIR}
|
||||
for i in ${CSS}; do install -m 0755 $$i ${WWWCSSDIR}/$$i; done
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
15
defines.mk
Normal file
15
defines.mk
Normal file
@ -0,0 +1,15 @@
|
||||
PACKAGE=proxmox-widget-toolkit
|
||||
|
||||
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||
GITVERSION:=$(shell git rev-parse HEAD)
|
||||
|
||||
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
||||
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
||||
|
||||
DESTDIR=
|
||||
|
||||
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
||||
|
||||
WWWBASEDIR=${DESTDIR}/usr/share/javascript/${PACKAGE}
|
||||
WWWCSSDIR=${WWWBASEDIR}/css
|
||||
WWWIMAGESDIR=${WWWBASEDIR}/images
|
13
images/Makefile
Normal file
13
images/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
include ../defines.mk
|
||||
|
||||
IMAGES=
|
||||
|
||||
all:
|
||||
|
||||
.PHONY: install
|
||||
install: ${IMAGES}
|
||||
install -d ${WWWIMAGESDIR}
|
||||
for i in ${IMAGES}; do install -m 0755 $$i ${WWWIMAGESDIR}/$$i; done
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
Loading…
Reference in New Issue
Block a user