summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d917e58811..550f2aff29 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,11 @@ else
else
$(warning Skipping runtime libraries, llvm-gcc 4 detected.)
endif
- OPTIONAL_DIRS := examples projects
+
+ # Don't install examples or projects.
+ ifneq ($(MAKECMDGOALS),install)
+ OPTIONAL_DIRS := examples projects
+ endif
DIRS += docs
endif
endif