[or-cvs] hack together a shell blob so "make dist" can build even when

arma at seul.org arma at seul.org
Sun Apr 2 03:42:34 UTC 2006


Update of /home2/or/cvsroot/tor/doc
In directory moria:/home/arma/work/onion/cvs/tor/doc

Modified Files:
	Makefile.am 
Log Message:
hack together a shell blob so 'make dist' can build even when
the website isn't there.


Index: Makefile.am
===================================================================
RCS file: /home2/or/cvsroot/tor/doc/Makefile.am,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -p -d -r1.22 -r1.23
--- Makefile.am	31 Mar 2006 05:00:28 -0000	1.22
+++ Makefile.am	2 Apr 2006 03:42:32 -0000	1.23
@@ -8,15 +8,21 @@ SUBDIRS = design-paper
 DIST_SUBDIRS = design-paper
 
 website: ../../website/docs/
-	cd $(srcdir)/../../website && $(MAKE)
 	rm -rf website
 	mkdir website
-	cp $(srcdir)/../../website/docs/tor-*.html.* \
-		$(srcdir)/../../website/stylesheet.css website
+	if test -d $(srcdir)/../../website ; then \
+		cd $(srcdir)/../../website && $(MAKE); \
+	fi
+	if test -d $(srcdir)/../../website ; then \
+		cp $(srcdir)/../../website/docs/tor-*.html.* \
+			$(srcdir)/../../website/stylesheet.css website; \
+	fi
 img: ../../website/img/
 	rm -rf img
 	mkdir img
-	cp $(srcdir)/../../website/img/*.png \
-		$(srcdir)/../../website/img/*.jpg img
+	if test -d $(srcdir)/../../website/img; then \
+		cp $(srcdir)/../../website/img/*.png \
+			$(srcdir)/../../website/img/*.jpg img; \
+	fi
 
 .PHONY: website img



More information about the tor-commits mailing list