#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	# backup
	cp -v $(CURDIR)/lib/PDF/FDF/Simple/Grammar.pm $(CURDIR)/lib/PDF/FDF/Simple/Grammar.pm.save

	# recreate
	perl ./Build grammar

	# build
	dh_auto_build -- --verbose 1

	# restore
	mv -v $(CURDIR)/lib/PDF/FDF/Simple/Grammar.pm.save $(CURDIR)/lib/PDF/FDF/Simple/Grammar.pm
