]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - Makefile
add css and image directory to packaging
[proxmox-widget-toolkit.git] / Makefile
index b9dc8b93a7f5c7918ee4ecae8327f375102f8d02..7aa7f73211a0abeb8f541a1b6d78fc4cf63a7b6b 100644 (file)
--- a/Makefile
+++ b/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                        \
@@ -34,6 +24,7 @@ JSSRC=                                        \
        form/ComboGrid.js               \
        form/RRDTypeSelector.js         \
        form/BondModeSelector.js        \
+       form/NetworkSelector.js         \
        button/Button.js                \
        button/HelpButton.js            \
        grid/ObjectGrid.js              \
@@ -57,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}
@@ -89,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}