diff --git a/doc/Makefile.in b/doc/Makefile.in
index cf2e85e9588c670c68a66e528e6c43ce812377ab..e34bd9d8780bc1405795e349d7a64a5fc61be836 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -156,7 +156,7 @@ target_alias = @target_alias@
 target_cpu = @target_cpu@
 target_os = @target_os@
 target_vendor = @target_vendor@
-EXTRA_DIST = *.pdf
+EXTRA_DIST = *.pdf *.html
 CLEANFILES = *.*~
 all: all-am
 
diff --git a/libasn1parser/Makefile.in b/libasn1parser/Makefile.in
index 77a02d47677c4e569bdbe93c4f650f47911dc55e..f405e604ec5e4eac04a36101576c15a0fb6863e5 100644
--- a/libasn1parser/Makefile.in
+++ b/libasn1parser/Makefile.in
@@ -544,8 +544,8 @@ distclean-generic:
 maintainer-clean-generic:
 	@echo "This command is intended for maintainers to use"
 	@echo "it deletes files that may require special tools to rebuild."
-	-rm -f asn1p_l.c
 	-rm -f asn1p_y.h
+	-rm -f asn1p_l.c
 	-rm -f asn1p_y.c
 clean: clean-am