diff --git a/src/backend/Makefile b/src/backend/Makefile
index 89fca4943af673b451458dcbc42c199869033d71..119f7aff89d196fcec418a92c4fd2a17e6f0a60a 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -311,7 +311,6 @@ maintainer-clean: distclean
 	      catalog/postgres.description \
 	      catalog/postgres.shdescription \
 	      replication/repl_gram.c \
-	      replication/repl_gram.h \
 	      replication/repl_scanner.c \
 	      utils/fmgroids.h \
 	      utils/fmgrtab.c \
diff --git a/src/backend/replication/.gitignore b/src/backend/replication/.gitignore
index a0332b230d5588a492927964114adeba25aa0b31..2a0491d149688e56e396f9525ec3383e5a3c8084 100644
--- a/src/backend/replication/.gitignore
+++ b/src/backend/replication/.gitignore
@@ -1,3 +1,2 @@
 /repl_gram.c
-/repl_gram.h
 /repl_scanner.c
diff --git a/src/backend/replication/Makefile b/src/backend/replication/Makefile
index 9d9ec87c9afcadec444c29b9ac0ef6ad67e4bf6c..1f93ac1e5d1594c89349c35a30f763f03ca7c6a8 100644
--- a/src/backend/replication/Makefile
+++ b/src/backend/replication/Makefile
@@ -22,11 +22,9 @@ include $(top_srcdir)/src/backend/common.mk
 # repl_scanner is compiled as part of repl_gram
 repl_gram.o: repl_scanner.c
 
-# See notes in src/backend/parser/Makefile about the following two rules
-
 repl_gram.c: repl_gram.y
 ifdef BISON
-	$(BISON) -d $(BISONFLAGS) -o $@ $<
+	$(BISON) $(BISONFLAGS) -o $@ $<
 else
 	@$(missing) bison $< $@
 endif