contrib / contacts / Makefileon commit alloc: add repository argument to alloc_tree_node (cf7203b)
   1# The default target of this Makefile is...
   2all::
   3
   4-include ../../config.mak.autogen
   5-include ../../config.mak
   6
   7prefix ?= /usr/local
   8gitexecdir ?= $(prefix)/libexec/git-core
   9mandir ?= $(prefix)/share/man
  10man1dir ?= $(mandir)/man1
  11htmldir ?= $(prefix)/share/doc/git-doc
  12
  13../../GIT-VERSION-FILE: FORCE
  14        $(MAKE) -C ../../ GIT-VERSION-FILE
  15
  16-include ../../GIT-VERSION-FILE
  17
  18# this should be set to a 'standard' bsd-type install program
  19INSTALL  ?= install
  20RM       ?= rm -f
  21
  22ASCIIDOC = asciidoc
  23XMLTO    = xmlto
  24
  25ifndef SHELL_PATH
  26        SHELL_PATH = /bin/sh
  27endif
  28SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
  29
  30ASCIIDOC_CONF = ../../Documentation/asciidoc.conf
  31MANPAGE_XSL   = ../../Documentation/manpage-normal.xsl
  32
  33GIT_CONTACTS := git-contacts
  34
  35GIT_CONTACTS_DOC := git-contacts.1
  36GIT_CONTACTS_XML := git-contacts.xml
  37GIT_CONTACTS_TXT := git-contacts.txt
  38GIT_CONTACTS_HTML := git-contacts.html
  39
  40doc: $(GIT_CONTACTS_DOC) $(GIT_CONTACTS_HTML)
  41
  42install: $(GIT_CONTACTS)
  43        $(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
  44        $(INSTALL) -m 755 $(GIT_CONTACTS) $(DESTDIR)$(gitexecdir)
  45
  46install-doc: install-man install-html
  47
  48install-man: $(GIT_CONTACTS_DOC)
  49        $(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
  50        $(INSTALL) -m 644 $^ $(DESTDIR)$(man1dir)
  51
  52install-html: $(GIT_CONTACTS_HTML)
  53        $(INSTALL) -d -m 755 $(DESTDIR)$(htmldir)
  54        $(INSTALL) -m 644 $^ $(DESTDIR)$(htmldir)
  55
  56$(GIT_CONTACTS_DOC): $(GIT_CONTACTS_XML)
  57        $(XMLTO) -m $(MANPAGE_XSL) man $^
  58
  59$(GIT_CONTACTS_XML): $(GIT_CONTACTS_TXT)
  60        $(ASCIIDOC) -b docbook -d manpage -f $(ASCIIDOC_CONF) \
  61                -agit_version=$(GIT_VERSION) $^
  62
  63$(GIT_CONTACTS_HTML): $(GIT_CONTACTS_TXT)
  64        $(ASCIIDOC) -b xhtml11 -d manpage -f $(ASCIIDOC_CONF) \
  65                -agit_version=$(GIT_VERSION) $^
  66
  67clean:
  68        $(RM) $(GIT_CONTACTS)
  69        $(RM) *.xml *.html *.1
  70
  71.PHONY: FORCE