buildsys: fix dependencies for bootstrap files

avoid removing and unzipping the bootstrap source archive as many
times as ${BTDATA} has file entries, add an intermediate target for
the directory, which is the producer for all those BTDATA files, and
that directory then depends on the zip archive.

I mean, it would be even better to just use the libjs-bootstrap
package (and jQuery for that matter) but that a little bigger change
for now

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-05-21 21:37:12 +02:00
parent a94e0490c7
commit 80a258900b

View File

@ -53,10 +53,10 @@ download_jquery:
wget https://code.jquery.com/jquery-${JQVER}.min.js -O ${JQSRC}.tmp wget https://code.jquery.com/jquery-${JQVER}.min.js -O ${JQSRC}.tmp
mv ${JQSRC}.tmp ${JQSRC} mv ${JQSRC}.tmp ${JQSRC}
${BTDATA}: ${BTSRC} ${BTDATA}: ${BTDIR}
${BTDIR}: ${BTSRC}
rm -rf ${BTDIR} rm -rf ${BTDIR}
unzip -x ${BTSRC} unzip -x ${BTSRC}
touch $@
install: ${BTDATA} install: ${BTDATA}
install -d -m 755 ${PERL5DIR}/PVE/APIServer install -d -m 755 ${PERL5DIR}/PVE/APIServer