PYTHON = python PYTHON_MODULES = $(wildcard lib/python/*.py) BUG_LISTS = $(wildcard data/*/list) # Adjust these if necessary. The architecture selection is arther # arbitrary at the moment. More architectures can be added later. MIRROR = http://merkel.debian.org/~aba/debian/ RELEASES_with_proposed_updates = sarge=i386,ia64 etch=i386,ia64 RELEASES = sid=i386,ia64 $(RELEASES_with_proposed_updates) \ $(subst =,-proposed-updates=, $(RELEASES_with_proposed_updates)) SECURITY_RELEASES = sarge-security=i386,ia64 PACKAGE_FILES = $(wildcard data/packages/*_Sources) \ $(wildcard data/packages/*_Packages) all: stamps/bug-lists-imported stamps/packages-imported \ stamps/calc-vulns stamps/bug-lists-imported: bin/update-bug-list-db \ $(BUG_LISTS) $(PYTHON_MODULES) $(PYTHON) bin/update-bug-list-db touch $@ # No dependencies on the Python files. This part of the code should # be quite stable. We only run the packages import if "make # update-packages" has been invoked before. stamps/packages-imported: $(PACKAGE_FILES) if test -e stamps/packages-downloaded ; then \ $(PYTHON) bin/update-packages import \ $(RELEASES) $(SECURITY_RELEASES) ; \ fi touch $@ stamps/calc-vulns: stamps/bug-lists-imported stamps/packages-imported if test -e stamps/packages-downloaded ; then \ $(PYTHON) bin/update-vulnerabilities ; \ fi touch $@ clean: -rm data/security.db -rm stamps/*-* .PHONY: check check-syntax test check: check-syntax check-syntax: stamps/CAN-syntax stamps/CVE-syntax \ stamps/DSA-syntax stamps/DTSA-syntax stamps/CAN-syntax: data/CAN/list bin/check-syntax $(PYTHON_MODULES) $(PYTHON) bin/check-syntax CAN data/CAN/list touch $@ stamps/CVE-syntax: data/CVE/list bin/check-syntax $(PYTHON_MODULES) $(PYTHON) bin/check-syntax CVE data/CVE/list touch $@ stamps/DSA-syntax: data/DSA/list bin/check-syntax $(PYTHON_MODULES) $(PYTHON) bin/check-syntax DSA data/DSA/list touch $@ stamps/DTSA-syntax: data/DTSA/list bin/check-syntax $(PYTHON_MODULES) $(PYTHON) bin/check-syntax DTSA data/DTSA/list touch $@ .PHONY: update-packages update-packages: $(PYTHON) bin/update-packages download $(MIRROR) $(RELEASES) $(PYTHON) bin/update-packages download \ http://security.debian.org/ $(SECURITY_RELEASES) touch stamps/packages-downloaded