git.iko.soy/typeable/pandoc
on master help sign in
Put all website commands into a subshell jail. If any command failed, we

would end up with web_dest directory which would have to be removed manually for further attempts. If this looked ugly; as an alternative solution we could change 'website' target as follows: website: $(web_dest)/index.html $(web_dest)/index.html: ... git-svn-id: https://pandoc.googlecode.com/svn/trunk@82 788f1e2b-df1e-0410-8736-df70ead52e1b

commit6c87b87835ce155ccfaa3af13f2dde99f70a2308 authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 8 Nov 2006, 10:56 (20 years ago) parentcc14b53
1 file changed+14−12
Makefile+14−12
Makefile+14−12
@@ -308,18 +308,20 @@ $(web_dest)/: $(MAIN) html $(tarball_name)
308308 exit 1; \
309309 }
310310 -rm -rf $(web_dest)
311− mkdir $(web_dest)
312− cp -r html $(web_dest)/doc
313− cp $(osx_dmg_name) $(web_dest)/
314− cp ../$(deb_main) $(web_dest)/
315− cp $(tarball_name) $(web_dest)/
316− cp $(web_src)/*.css $(web_dest)/
317− $(make_page) README > $(web_dest)/README.html
318− $(make_page) INSTALL > $(web_dest)/INSTALL.html
319− $(make_page) changelog > $(web_dest)/history.html
320− sed -e 's/@TARBALL_NAME@/$(tarball_name)/g' $(web_src)/index.txt | \
321− sed -e 's/@DEB_NAME@/$(deb_main)/g' | \
322− $(make_page) > $(web_dest)/index.html
311+ ( \
312+ mkdir $(web_dest); \
313+ cp -r html $(web_dest)/doc; \
314+ cp $(osx_dmg_name) $(web_dest)/; \
315+ cp ../$(deb_main) $(web_dest)/; \
316+ cp $(tarball_name) $(web_dest)/; \
317+ cp $(web_src)/*.css $(web_dest)/; \
318+ $(make_page) README > $(web_dest)/README.html; \
319+ $(make_page) INSTALL > $(web_dest)/INSTALL.html; \
320+ $(make_page) changelog > $(web_dest)/history.html; \
321+ sed -e 's/@TARBALL_NAME@/$(tarball_name)/g' $(web_src)/index.txt | \
322+ sed -e 's/@DEB_NAME@/$(deb_main)/g' | \
323+ $(make_page) > $(web_dest)/index.html; \
324+ ) || { rm -rf $(web_dest); exit 1; }
323325
324326.PHONY: distclean clean
325327distclean: clean