From: Chong Yidong Date: Fri, 1 Jul 2011 23:31:51 +0000 (-0400) Subject: Add a `site' Makefile target for using package repo "in place". X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/c004b7f787463e76df5baf48fead28160a816576 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. --- 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