Fix dist to find cairosvg dhcpcd-ui-0.7.8
authorRoy Marples <roy@marples.name>
Mon, 28 Dec 2020 16:12:14 +0000 (16:12 +0000)
committerRoy Marples <roy@marples.name>
Mon, 28 Dec 2020 16:12:14 +0000 (16:12 +0000)
Makefile

index 0e9cc1f3c15839e044c5d0441375dde2ba79b496..adc2da93ac4c02176c38fc404296f4033dbc723d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,9 +27,13 @@ SNAPDIR=     ${DISTPREFIX}-${SNAP}
 SNAPFILE=      ${SNAPDIR}.tar.xz
 
 dist:
+       [ -e config.mk ] || ./configure
        git archive --prefix=${DISTPREFIX}/ -o /tmp/${DISTFILETAR} ${GITREF}
        tar -xpf /tmp/${DISTFILETAR} -C /tmp
+       # We need config.mk to build the icons - remove it once done
+       cp config.mk /tmp/${DISTPREFIX}
        (cd /tmp/${DISTPREFIX}; make icons)
+       rm /tmp/${DISTPREFIX}/config.mk
        rm -rf /tmp/${DISTPREFIX}/doc
        tar -cvJpf ${DISTFILE} -C /tmp ${DISTPREFIX}
        rm -rf /tmp/${DISTPREFIX} /tmp/${DISTFILETAR}