diff --git a/Makefile.am b/Makefile.am
index 7999edf180a3c3d891acdeea38279907e794dd0c..97c1463ef2fe82175dc677832f58898cc92e112a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -55,6 +55,7 @@ CLEANFILES = \
 	doc/examples/bash_completion \
 	doc/examples/ganeti.initd \
 	doc/examples/ganeti.cron \
+	doc/examples/hooks/ipsec \
 	lib/*.py[co] \
 	lib/http/*.py[co] \
 	lib/hypervisor/*.py[co] \
@@ -200,6 +201,7 @@ EXTRA_DIST = \
 	doc/examples/ganeti.cron.in \
 	doc/examples/dumb-allocator \
 	doc/examples/hooks/ethers \
+	doc/examples/hooks/ipsec.in \
 	doc/locking.txt \
 	test/testutils.py \
 	test/mocks.py \
@@ -274,7 +276,8 @@ TESTS_ENVIRONMENT = \
 
 all-local: stamp-directories devel/upload \
 	doc/examples/bash_completion \
-	doc/examples/ganeti.initd doc/examples/ganeti.cron
+	doc/examples/ganeti.initd doc/examples/ganeti.cron \
+	doc/examples/hooks/ipsec
 
 devel/upload: devel/upload.in stamp-directories $(REPLACE_VARS_SED)
 	sed -f $(REPLACE_VARS_SED) < $< > $@
@@ -289,6 +292,10 @@ doc/examples/%: doc/examples/%.in stamp-directories \
 		$(REPLACE_VARS_SED)
 	sed -f $(REPLACE_VARS_SED) < $< > $@
 
+doc/examples/hooks/%: doc/examples/hooks/%.in stamp-directories \
+		$(REPLACE_VARS_SED)
+	sed -f $(REPLACE_VARS_SED) < $< > $@
+
 doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) $(RUN_IN_TEMPDIR) \
 	lib/cli.py $(gnt_scripts) tools/burnin
 	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_BASH_COMPLETION) > $@