2012-07-19 13:37:06 +00:00
|
|
|
SHELL := /bin/bash
|
|
|
|
PKGDIR := ./packages
|
|
|
|
HTMLDIR := ./html
|
|
|
|
WORKDIR := ./working
|
|
|
|
|
2012-07-20 20:40:33 +00:00
|
|
|
.PHONY: clean build index html json
|
2012-07-19 13:37:06 +00:00
|
|
|
.FORCE:
|
|
|
|
|
2012-07-20 20:40:33 +00:00
|
|
|
all: build json index
|
2012-07-19 13:37:06 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
emacs --batch -l package-build.el --eval "(package-build-all)"
|
|
|
|
|
|
|
|
html:
|
|
|
|
$(MAKE) -C $(HTMLDIR)
|
|
|
|
|
|
|
|
index: html
|
|
|
|
|
|
|
|
clean-working:
|
|
|
|
rm -rf $(WORKDIR)/*
|
|
|
|
|
|
|
|
clean-packages:
|
|
|
|
rm -rfv $(PKGDIR)/*
|
|
|
|
|
2012-07-20 20:40:33 +00:00
|
|
|
clean-json:
|
|
|
|
-rm -vf archive.json recipes.json
|
|
|
|
|
|
|
|
clean: clean-working clean-packages clean-json
|
|
|
|
|
|
|
|
archive.json: packages/archive-contents
|
|
|
|
emacs --batch --no-site-file -l package-build.el --eval \
|
|
|
|
'(package-build-archive-alist-as-json "archive.json")'
|
|
|
|
|
|
|
|
recipes.json: recipes/.dirstamp
|
|
|
|
emacs --batch --no-site-file -l package-build.el --eval \
|
|
|
|
'(package-build-alist-as-json "recipes.json")'
|
|
|
|
|
|
|
|
recipes/.dirstamp: .FORCE
|
|
|
|
@[[ ! -e $@ || "$$(find $(@D) -newer $@ -print -quit)" != "" ]] && touch $@ || exit 0
|
|
|
|
|
|
|
|
json: archive.json recipes.json
|
2012-07-19 13:37:06 +00:00
|
|
|
|
|
|
|
recipes/%: .FORCE
|
|
|
|
-rm -vf $(PKGDIR)/$(notdir $@)-*
|
|
|
|
@echo
|
|
|
|
./buildpkg $(notdir $@)
|