Fix import target
authorRoy Marples <roy@marples.name>
Wed, 17 Jul 2019 17:08:23 +0000 (18:08 +0100)
committerRoy Marples <roy@marples.name>
Wed, 17 Jul 2019 17:08:23 +0000 (18:08 +0100)
Makefile

index 63aca379969128b5238f1ed874ca1e78b159428b..0bae4d5070acb549b7ccf915d6512147bf4d1f55 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -79,11 +79,6 @@ maninstall:
 
 install: proginstall maninstall
 
-import:
-       rm -rf /tmp/${DISTPREFIX}
-       ${INSTALL} -d /tmp/${DISTPREFIX}
-       cp README ${SRCS} /tmp/${DISTPREFIX}
-
 dist-git:
        git archive --prefix=${DISTPREFIX}/ ${GITREF} | xz >${DISTFILE}
 
@@ -103,3 +98,8 @@ distinfo: dist
        ${PGP} --clearsign --output=${DISTINFOSIGN} ${DISTINFO}
        chmod 644 ${DISTINFOSIGN}
        ls -l ${DISTFILE} ${DISTINFO} ${DISTINFOSIGN}
+
+import: dist
+       rm -rf /tmp/${DISTPREFIX}
+       ${INSTALL} -d /tmp/${DISTPREFIX}
+       tar xvJpf ${DISTFILE} -C /tmp