2
1

btrfs-progs-0001-Add-support-for-DISABLE_DOCUMENTATION.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 5e101a32087bbba18ebbcdf75faee3fff27f7168 Mon Sep 17 00:00:00 2001
  2. From: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. Date: Sat, 30 Aug 2014 14:42:00 +0200
  4. Subject: [PATCH 1/2] Add support for DISABLE_DOCUMENTATION
  5. This commit adds the support for a make variable named
  6. "DISABLE_DOCUMENTATION", which allows to disable the build of the
  7. documentation. This is useful in contexts where the tools needed to
  8. build the documentation are not necessarily available.
  9. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. ---
  12. Makefile | 9 +++++++--
  13. 1 file changed, 7 insertions(+), 2 deletions(-)
  14. diff --git a/Makefile b/Makefile
  15. index e721e99..926885f 100644
  16. --- a/Makefile
  17. +++ b/Makefile
  18. @@ -57,10 +57,15 @@ btrfs_image_libs = -lpthread
  19. btrfs_fragments_libs = -lgd -lpng -ljpeg -lfreetype
  20. SUBDIRS =
  21. -BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS)) build-Documentation
  22. -INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS)) install-Documentation
  23. +BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS))
  24. +INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS))
  25. CLEANDIRS = $(patsubst %,clean-%,$(SUBDIRS))
  26. +ifneq ($(DISABLE_DOCUMENTATION),1)
  27. +BUILDDIRS += build-Documentation
  28. +INSTALLDIRS += install-Documentation
  29. +endif
  30. +
  31. .PHONY: $(SUBDIRS)
  32. .PHONY: $(BUILDDIRS)
  33. .PHONY: $(INSTALLDIRS)
  34. --
  35. 2.0.0