diff --git a/doc/html/Makefile.am b/doc/html/Makefile.am
index c2e494de..736d8f2e 100644
--- a/doc/html/Makefile.am
+++ b/doc/html/Makefile.am
@@ -1,13 +1,12 @@
-BUILT_HTML_FILES = $(patsubst doc/%.page,doc/html/%.html,$(wildcard doc/*.page))
CLEANFILES += $(wildcard doc/html/*.html)
CLEANFILES += $(wildcard doc/html/*.css)
CLEANFILES += $(wildcard doc/html/*.js)
CLEANFILES += $(wildcard doc/html/*.png)
-%.html: ../%.page
- $(AM_V_GEN)$(YELP_BUILD) html -o doc/html/ doc
+.PHONY: doc/html
-html: $(BUILT_HTML_FILES)
+doc/html:
+ $(AM_V_GEN)$(YELP_BUILD) html -o doc/html/ doc
YELP_HTML_FILES = \
doc/html/C.css \
@@ -21,5 +20,6 @@ YELP_HTML_FILES = \
doc/html/yelp-note.png \
doc/html/yelp.js
-EXTRA_DIST += $(BUILT_HTML_FILES)
-EXTRA_DIST += $(YELP_HTML_FILES)
\ No newline at end of file
+EXTRA_DIST += doc/html
+EXTRA_DIST += $(YELP_HTML_FILES)
+