diff --git a/Makefile b/Makefile index 73ef3868..28243dee 100644 --- a/Makefile +++ b/Makefile @@ -57,10 +57,15 @@ btrfs_image_libs = -lpthread btrfs_fragments_libs = -lgd -lpng -ljpeg -lfreetype SUBDIRS = -BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS)) build-Documentation -INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS)) install-Documentation +BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS)) +INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS)) CLEANDIRS = $(patsubst %,clean-%,$(SUBDIRS)) +ifneq ($(DISABLE_DOCUMENTATION),1) +BUILDDIRS += build-Documentation +INSTALLDIRS += install-Documentation +endif + .PHONY: $(SUBDIRS) .PHONY: $(BUILDDIRS) .PHONY: $(INSTALLDIRS)