--- /dev/null
+# -*- makefile -*-
+
+buildout-net.cfg: buildout.cfg
+ @sed -i -e '/\[buildout\]/ba' -eb -e:a \
+ -ea\\ -e 'download-cache = $(DLCACHE)/downloads' \
+ -ea\\ -e 'install-from-cache = true' \
+ -ea\\ -e 'extends-cache = $(DLCACHE)/extends' \
+ -ea\\ -e 'newest = false' \
+ buildout.cfg || ( rm -f buildout.cfg; false )
+ @mkdir -p $(DLCACHE)/downloads $(DLCACHE)/extends || ( rm -f buildout.cfg; false )
+ @( \
+ echo "[buildout]"; \
+ echo "extends = buildout.cfg"; \
+ echo "install-from-cache = false"; \
+ echo "newest = true"; \
+ ) > buildout-net.cfg
+
+BUILDOUT_OPTS = -c buildout-net.cfg
+
+init-nonet: BUILDOUT_OPTS =
+update-nonet: BUILDOUT_OPTS =
+
+bootstrap::
+ sed -i -e '1s/^#!.*\/python/#!$(subst /,\/,$(PYTHON))/' $(PYTHON_DIR)/bin/*
+ $(PYTHON) -c 'from zc.buildout.buildout import main; main(["bootstrap"])'
+
+.gitignore::
+ @$(gitignore) "/buildout-net.cfg"
.PHONY: update-hook
bootstrap::
- sed -i -e '1s/^#!.*\/python/#!$(subst /,\/,$(PYTHON))/' $(PYTHON_DIR)/bin/*
- $(PYTHON) -c 'from zc.buildout.buildout import main; main(["bootstrap"])'
.PHONY: bootstrap
update:: update-hook
@$(gitignore) "*.pyc"
@$(gitignore) "*.egg-info/"
@$(gitignore) "/.env"
- @$(gitignore) "/.nonet.cfg"
define env
_env () { \
) || ( rm -rf temp-project; false )
@echo
@(rm -rf $(BASEDIR)/temp-project)
- @sed -i -e '/\[buildout\]/ba' -eb -e:a \
- -ea\\ -e 'download-cache = $(DLCACHE)/downloads' \
- -ea\\ -e 'install-from-cache = true' \
- -ea\\ -e 'extends-cache = $(DLCACHE)/extends' \
- buildout.cfg || ( rm -f buildout.cfg; false )
- @mkdir -p $(DLCACHE)/downloads $(DLCACHE)/extends || ( rm -f buildout.cfg; false )
-
-buildout-net.cfg:
- @( \
- echo "[buildout]"; \
- echo "extends = buildout.cfg"; \
- echo "install-from-cache = false"; \
- echo "newest = true"; \
- ) > buildout-net.cfg
-
###########################################################################
.gitignore::
@$(gitignore) "/bin/"
@$(gitignore) "/develop-eggs/"
- @$(gitignore) "/downloads/"
+ @$(gitignore) "/$(EGGDIR)/"
@$(gitignore) "/log/"
@$(gitignore) "/var/"
+ @$(gitignore) "/parts/"
@$(gitignore) "/.installed.cfg"
.env::
@$(env) PATH $(BASEDIR)/bin
clean::
- rm -rf log var develop-eggs parts
-
-BUILDOUT_OPTS = -c buildout-net.cfg
-
-init-nonet: BUILDOUT_OPTS =
-update-nonet: BUILDOUT_OPTS =
+ rm -rf bin $(EGGDIR) log var develop-eggs parts .installed.cfg
include $(MAKELIB)/Makefile.master
include $(MAKELIB)/Makefile.pybase
include $(MAKELIB)/Makefile.pil
+include $(MAKELIB)/Makefile.buildout
include $(MAKELIB)/Makefile.zope3-buildout