summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0e9cc1f..adc2da9 100644
--- 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}