Skip to content
Snippets Groups Projects
Unverified Commit d9579281 authored by Marcin Ślusarz's avatar Marcin Ślusarz Committed by GitHub
Browse files

Merge pull request #4596 from jan-konczak-cs-put/master

Adding DOC variable to Makefile that enables/disables building & installing documentation
parents fadb2b7b 5605f372
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,7 @@ BUILD_PACKAGE_CHECK ?= y ...@@ -46,6 +46,7 @@ BUILD_PACKAGE_CHECK ?= y
BUILD_RPMEM ?= y BUILD_RPMEM ?= y
TEST_CONFIG_FILE ?= "$(CURDIR)"/src/test/testconfig.sh TEST_CONFIG_FILE ?= "$(CURDIR)"/src/test/testconfig.sh
PMEM2_INSTALL ?= n PMEM2_INSTALL ?= n
DOC ?= y
rpm : override DESTDIR="$(CURDIR)/$(RPM_BUILDDIR)" rpm : override DESTDIR="$(CURDIR)/$(RPM_BUILDDIR)"
dpkg: override DESTDIR="$(CURDIR)/$(DPKG_BUILDDIR)" dpkg: override DESTDIR="$(CURDIR)/$(DPKG_BUILDDIR)"
...@@ -55,17 +56,23 @@ all: doc ...@@ -55,17 +56,23 @@ all: doc
$(MAKE) -C src $@ $(MAKE) -C src $@
doc: doc:
ifeq ($(DOC),y)
test -f .skip-doc || $(MAKE) -C doc all test -f .skip-doc || $(MAKE) -C doc all
endif
clean: clean:
$(MAKE) -C src $@ $(MAKE) -C src $@
ifeq ($(DOC),y)
test -f .skip-doc || $(MAKE) -C doc $@ test -f .skip-doc || $(MAKE) -C doc $@
endif
$(RM) -r $(RPM_BUILDDIR) $(DPKG_BUILDDIR) $(RM) -r $(RPM_BUILDDIR) $(DPKG_BUILDDIR)
$(RM) -f $(GIT_VERSION) $(RM) -f $(GIT_VERSION)
clobber: clobber:
$(MAKE) -C src $@ $(MAKE) -C src $@
ifeq ($(DOC),y)
test -f .skip-doc || $(MAKE) -C doc $@ test -f .skip-doc || $(MAKE) -C doc $@
endif
$(RM) -r $(RPM_BUILDDIR) $(DPKG_BUILDDIR) rpm dpkg $(RM) -r $(RPM_BUILDDIR) $(DPKG_BUILDDIR) rpm dpkg
$(RM) -f $(GIT_VERSION) $(RM) -f $(GIT_VERSION)
...@@ -121,7 +128,9 @@ install: all ...@@ -121,7 +128,9 @@ install: all
install uninstall: install uninstall:
$(MAKE) -C src $@ $(MAKE) -C src $@
ifeq ($(DOC),y)
$(MAKE) -C doc $@ $(MAKE) -C doc $@
endif
.PHONY: all clean clobber test check cstyle check-license install uninstall\ .PHONY: all clean clobber test check cstyle check-license install uninstall\
source rpm dpkg pkg-clean pcheck check-remote format doc require-rpmem\ source rpm dpkg pkg-clean pcheck check-remote format doc require-rpmem\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment