summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-02-23 12:16:17 +0000
committerRoy Marples <roy@marples.name>2015-02-23 12:16:17 +0000
commit0828e822ddd4137cc71b2a8628b017a54ec706f5 (patch)
treea9fe16a50c46f538b2fcad715afa26313631caea /Makefile
parent9e0626b7cac51839ed9abd1b9c0c9e264f595f4c (diff)
downloaddhcpcd-0828e822ddd4137cc71b2a8628b017a54ec706f5.tar.xz
Allow snapshots to be built.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5f2c45ee..36ff297a 100644
--- a/Makefile
+++ b/Makefile
@@ -142,6 +142,15 @@ dist:
gunzip -c ${DISTFILEGZ} | bzip2 >${DISTFILE}
rm ${DISTFILEGZ}
+snapshot:
+ rm -rf /tmp/${DISTPREFIX}
+ ${INSTALL} -d /tmp/${DISTPREFIX}
+ cp -RPp * /tmp/${DISTPREFIX}
+ cd /tmp/${DISTPREFIX} && ${MAKE} distclean
+ cd /tmp && tar -cvjpf ${DISTFILE} ${DISTPREFIX}
+ mv /tmp/${DISTFILE} .
+ ls -l ${DISTFILE}
+
import: ${SRCS}
rm -rf /tmp/${DISTPREFIX}
${INSTALL} -d /tmp/${DISTPREFIX}