]> git.proxmox.com Git - pve-http-server.git/commitdiff
buildsys: fix dependencies for bootstrap files
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 May 2019 19:37:12 +0000 (21:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 May 2019 19:41:37 +0000 (21:41 +0200)
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>
Makefile

index 546f5786860421cb9c5b913b0ed1bb925c9f91a5..9c838075256510122e4f102c855f97f28a3ec45d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -53,10 +53,10 @@ download_jquery:
        wget https://code.jquery.com/jquery-${JQVER}.min.js -O ${JQSRC}.tmp
        mv ${JQSRC}.tmp ${JQSRC}
 
-${BTDATA}: ${BTSRC}
+${BTDATA}: ${BTDIR}
+${BTDIR}: ${BTSRC}
        rm -rf ${BTDIR}
        unzip -x ${BTSRC}
-       touch $@
 
 install: ${BTDATA}
        install -d -m 755 ${PERL5DIR}/PVE/APIServer