summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2011-09-22 17:20:07 +0200
committerJustin Davis <jrcd83@gmail.com>2011-09-22 17:20:07 +0200
commit40a410969dc7ad4a7b28bd3a831a1bb60d088eef (patch)
tree58f07713420a6c935c85436a3d6ba2910af99156 /Makefile
parent58fc6f5e57eeeaca6e815bd3cb804cb453e05b0d (diff)
downloadgenpkg-40a410969dc7ad4a7b28bd3a831a1bb60d088eef.tar.gz
genpkg-40a410969dc7ad4a7b28bd3a831a1bb60d088eef.tar.xz
Do not download CPAN dists if it already exists in the CWD.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1f996f1..0d9684c 100644
--- a/Makefile
+++ b/Makefile
@@ -26,14 +26,11 @@ tweakmeta: $(PKGS)/$(PKG)/PKGMETA
fi
$(PKGS)/$(PKG)/PKGMETA: prepare
- @rm -rf tmp
- @mkdir tmp
- @cd tmp; \
+ @[ -d '$(PKGS)/$(PKG)' ] || mkdir '$(PKGS)/$(PKG)'
+ @cd '$(PKGS)/$(PKG)'; \
PATH="$$PATH:$(BIN)" METABIN="$(BIN)/metas" \
PKGVAR="$(PKGVAR)" \
$(BIN)/makepkgmeta $(PKG) >PKGMETA
- @rm -rf "$(PKGS)/$(PKG)"
- @mv tmp "$(PKGS)/$(PKG)"
@echo 'Created pkg/$(PKG)/PKGMETA.'
prepare: