DISTS=armel-lenny armel-lenny+crunch armel-squeeze+crunch

all:
	for a in $(DISTS); do \
	 dpkg-scanpackages $$a /dev/null > $$a/Packages ;\
	 gzip  -9c < $$a/Packages > $$a/Packages.gz ;\
	 bzip2 -9c < $$a/Packages > $$a/Packages.bz2 ;\
	 # ./mkindex $$a ;\
	done
	# Always rebuild index.html too
	cat index.head > index.html
	ls -ldU Makefile $(DISTS) | \
	  sed 's|\(.*\) \([^ ]*\)|\1 <a href="\2">\2</a>|' >> index.html
	cat index.tail >> index.html

update:
	rsync -av --delete ./ martinwguy.net:www/martinwguy/crunch/debian/
