summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial
diff options
context:
space:
mode:
authorErick Tryzelaar <idadesub@users.sourceforge.net>2008-03-30 20:32:18 +0000
committerErick Tryzelaar <idadesub@users.sourceforge.net>2008-03-30 20:32:18 +0000
commitdd0ace574bcad687e1644d773974593d5df18434 (patch)
treee58de58df5618e902830edc5daa6008afdee5a1d /llvm/docs/tutorial
parent7d6c8ae4886cf087f00213be3378bb51184b9010 (diff)
downloadbcm5719-llvm-dd0ace574bcad687e1644d773974593d5df18434.tar.gz
bcm5719-llvm-dd0ace574bcad687e1644d773974593d5df18434.zip
Tweak build system to allow for installing the tutorial and uninstalling the docs.
llvm-svn: 48968
Diffstat (limited to 'llvm/docs/tutorial')
-rw-r--r--llvm/docs/tutorial/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/llvm/docs/tutorial/Makefile b/llvm/docs/tutorial/Makefile
new file mode 100644
index 00000000000..6169bb82416
--- /dev/null
+++ b/llvm/docs/tutorial/Makefile
@@ -0,0 +1,28 @@
+##===- docs/tutorial/Makefile ------------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LEVEL := ../..
+include $(LEVEL)/Makefile.common
+
+HTML := $(wildcard $(PROJ_SRC_DIR)/*.html)
+EXTRA_DIST := $(HTML) index.html
+HTML_DIR := $(PROJ_docsdir)/html/tutorial
+
+install-local:: $(HTML)
+ $(Echo) Installing HTML Tutorial Documentation
+ $(Verb) $(MKDIR) $(HTML_DIR)
+ $(Verb) $(DataInstall) $(HTML) $(HTML_DIR)
+ $(Verb) $(DataInstall) $(PROJ_SRC_DIR)/index.html $(HTML_DIR)
+
+uninstall-local::
+ $(Echo) Uninstalling Tutorial Documentation
+ $(Verb) $(RM) -rf $(HTML_DIR)
+
+printvars::
+ $(Echo) "HTML : " '$(HTML)'
OpenPOWER on IntegriCloud