SHARE
TWEET

Untitled

a guest Nov 14th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Minimal makefile for Sphinx documentation
  2. #
  3.  
  4. # You can set these variables from the command line.
  5. SPHINXOPTS       =
  6. SPHINXBUILD      = sphinx-build
  7. SOURCEDIR        = .
  8. BUILDDIR         = _build
  9.  
  10. ROOT_DIR        := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
  11. PHP                      = php
  12. PHPSRC           = ../src
  13. NAMESPACE        = Salaros\\Vtiger\\VTWSCLib
  14. NAMESPACEPATH            = Salaros/Vtiger/VTWSCLib
  15. VENDORDIR       := $(abspath ../vendor )
  16. SPHPDOX          = $(VENDORDIR)/sphpdox/sphpdox
  17.  
  18. # Put it first so that "make" without argument is like "make help".
  19. help:
  20.     @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  21.  
  22. .PHONY: help Makefile
  23.  
  24. # Catch-all target: route all unknown targets to Sphinx using the new
  25. # "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
  26. %: sphpdox Makefile
  27.     @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  28.  
  29. sphpdox:
  30.     @ln -sfv $(VENDORDIR)/ $(SPHPDOX)/
  31.     @$(PHP) -f $(SPHPDOX)/sphpdox.php process $(NAMESPACE) $(PHPSRC) -o $(BUILDDIR)
  32.     @mv -v $(BUILDDIR)/$(NAMESPACEPATH)/* ./
  33.     @rm -rf $(BUILDDIR)/./*
RAW Paste Data
Top