Makefile
changeset 227 8ce190faa5c2
parent 226 b472627106df
child 347 301479a4acdf
child 350 bb7ee0a13ea9
equal deleted inserted replaced
226:b472627106df 227:8ce190faa5c2
     3 PREFIX=/usr/local/share
     3 PREFIX=/usr/local/share
     4 LIBDIR=$(PREFIX)/mercurial-server
     4 LIBDIR=$(PREFIX)/mercurial-server
     5 DOCDIR=$(PREFIX)/doc/mercurial-server
     5 DOCDIR=$(PREFIX)/doc/mercurial-server
     6 ETCDIR=/etc/mercurial-server
     6 ETCDIR=/etc/mercurial-server
     7 NEWUSER=hg
     7 NEWUSER=hg
     8 XSL=/usr/share/xml/docbook/stylesheet/nwalsh
     8 DOCBOOK_XSL=/usr/share/xml/docbook/stylesheet/nwalsh
     9 
     9 
    10 INSTALL=install
    10 INSTALL=install
    11 
    11 
    12 build: build/html/index.html pythonbuild
    12 build: build/html/index.html pythonbuild
    13 
    13 
    32 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) README 
    32 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) README 
    33 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)/html
    33 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)/html
    34 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
    34 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
    35 
    35 
    36 build/html/index.html: doc/manual.docbook
    36 build/html/index.html: doc/manual.docbook
    37 	xsltproc --nonet -o $@ $(XSL)/html/docbook.xsl $^
    37 	xsltproc --nonet -o $@ $(DOCBOOK_XSL)/html/docbook.xsl $^
    38 
    38 
    39 build/pdf/manual.pdf: doc/manual.docbook
    39 build/pdf/manual.pdf: doc/manual.docbook
    40 	mkdir -p build/pdf
    40 	mkdir -p build/pdf
    41 	fop -xml $^ -xsl $(XSL)/fo/docbook.xsl $@
    41 	fop -xml $^ -xsl $(DOCBOOK_XSL)/fo/docbook.xsl $@
    42 
    42 
    43 pythonbuild:
    43 pythonbuild:
    44 	python setup.py build
    44 	python setup.py build
    45 
    45 
    46 pythoninstall:
    46 pythoninstall: