]> code.delx.au - gnu-emacs-elpa/commitdiff
Add a `site' Makefile target for using package repo "in place".
authorChong Yidong <cyd@stupidchicken.com>
Fri, 1 Jul 2011 23:31:51 +0000 (19:31 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 1 Jul 2011 23:31:51 +0000 (19:31 -0400)
admin/archive-contents.el (batch-make-site-dir)
(archive--write-pkg-file): New functions.

Makefile

index 71686a07d51a5df0fb684552627689eae7badcdd..f62ab67cc0bf3f3c82a88a2425aaa9f64c6bbf4f 100644 (file)
--- 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