From c004b7f787463e76df5baf48fead28160a816576 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 1 Jul 2011 19:31:51 -0400 Subject: [PATCH] Add a `site' Makefile target for using package repo "in place". admin/archive-contents.el (batch-make-site-dir) (archive--write-pkg-file): New functions. --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 71686a07d..f62ab67cc 100644 --- a/Makefile +++ b/Makefile @@ -3,14 +3,16 @@ EMACS=emacs ARCHIVE_TMP=archive-tmp -PACKAGE_SITE_DIR=site +SITE_DIR=site + +.PHONY: archive-tmp process-archive archive-full org-fetch clean all ## Set up the source files for direct usage, by pointing -## `package-directory-list' to site/ +## `package-directory-list' to the site/ directory. site: packages - mkdir -p $(PACKAGE_SITE_DIR) - -.PHONY: archive-tmp process-archive archive-full org-fetch + mkdir -p $(SITE_DIR) + $(EMACS) -batch -l $(CURDIR)/admin/archive-contents.el \ + --eval "(batch-make-site-dir \"packages\" \"$(SITE_DIR)\")" ## Deploy the package archive to archive/, with packages in ## archive/packages/: @@ -53,3 +55,8 @@ org-fetch: archive-tmp rm -f $${pkgname}.tar; \ mv $${pkgname} org; \ fi + +clean: + rm -rf archive $(ARCHIVE_TMP) $(SITE_DIR) + +all: site -- 2.39.2