Add import target
authorRoy Marples <roy@marples.name>
Fri, 20 Nov 2009 10:51:13 +0000 (10:51 +0000)
committerRoy Marples <roy@marples.name>
Fri, 20 Nov 2009 10:51:13 +0000 (10:51 +0000)
Makefile

index d83d91f477751017497c1ad3c7731687e4ca9b80..3c5c94a46f20223c2ce27342d4a8fd762866ba44 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,8 @@ MANDIR?=      ${MANPREFIX}/man
 RESOLVCONF=    resolvconf resolvconf.8 resolvconf.conf.5
 SUBSCRIBERS=   libc dnsmasq named unbound
 TARGET=                ${RESOLVCONF} ${SUBSCRIBERS}
+SRCS=          ${TARGET:C,$,.in,} # pmake
+SRCS:=         ${TARGET:=.in} # gmake
 
 # Try to embed correct service restart commands
 _CMD1=         \\1 status >/dev/null 2>\\&1
@@ -70,11 +72,12 @@ install: ${TARGET}
        ${INSTALL} -d ${DESTDIR}${MANDIR}/man5
        ${INSTALL} -m ${MANMODE} resolvconf.conf.5 ${DESTDIR}${MANDIR}/man5
 
-dist:
+import:
+       rm -rf /tmp/${PKG}
        ${INSTALL} -d /tmp/${PKG}
-       cp -RPp . /tmp/${PKG}
-       (cd /tmp/${PKG}; ${MAKE} clean)
-       rm -rf /tmp/${PKG}/*.bz2 /tmp/${PKG}/.git /tmp/${PKG}/.gitignore
+       cp README ${SRCS} /tmp/${PKG}
+
+dist: import
        tar cvjpf ${PKG}.tar.bz2 -C /tmp ${PKG} 
        rm -rf /tmp/${PKG} 
        ls -l ${PKG}.tar.bz2