#
# Copyright 2010-2013 SPARTA, Inc.  All rights reserved.
# See the COPYING file included with the DNSSEC-Tools package for details.
#
# Makefile for building demo data for the many-zones-fast rollerd demo.
#

all: many-zones-rollerd

many-zones-rollerd:	clean pristine-files zones-short

pristine-files:
	cp save-demo.rollrec demo.rollrec
	cp save-dummy.com dummy.com
	cp save-example.com example.com
	cp save-test.com test.com
	cp save-woof.com woof.com
	cp save-xorn.com xorn.com
	cp save-yowzah.com yowzah.com
	cp save-zero.com zero.com
	phaser demo.rollrec

zones-short:
	zonesigner -ksklife 15 -zsklife 15 -genkeys dummy.com
	zonesigner -ksklife 15 -zsklife 15 -genkeys example.com
	zonesigner -ksklife 15 -zsklife 15 -genkeys test.com
	zonesigner -ksklife 15 -zsklife 15 -genkeys woof.com
	zonesigner -ksklife 15 -zsklife 15 -genkeys xorn.com
	zonesigner -ksklife 15 -zsklife 15 -genkeys yowzah.com
	zonesigner -ksklife 15 -zsklife 15 -genkeys zero.com

clean:
	rm -f K* db.* dsset-* keyset-* *.krf *.signed
	rm -f dummy.com example.com test.com woof.com xorn.com yowzah.com zero.com
	rm -f demo.rollrec
	@echo NOT deleting log.demo
	@echo ' '

