Makefile
changeset 218 ddd0f0d12e12
parent 203 d27b41424efb
child 226 b472627106df
equal deleted inserted replaced
208:31e862df1884 218:ddd0f0d12e12
     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 
     9 
     9 INSTALL=install
    10 INSTALL=install
    10 
    11 
    11 build: build/html/index.html pythonbuild
    12 build: build/html/index.html pythonbuild
    12 
    13 
    27 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) README 
    28 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) README 
    28 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)/html
    29 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)/html
    29 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
    30 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
    30 
    31 
    31 build/html/index.html: doc/manual.docbook
    32 build/html/index.html: doc/manual.docbook
    32 	xsltproc --nonet -o $@ /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl $^
    33 	xsltproc --nonet -o $@ $(XSL)/html/docbook.xsl $^
    33 
    34 
    34 build/pdf/manual.pdf: doc/manual.docbook
    35 build/pdf/manual.pdf: doc/manual.docbook
    35 	mkdir -p build/pdf
    36 	mkdir -p build/pdf
    36 	fop -xml $^ -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl $@
    37 	fop -xml $^ -xsl $(XSL)/fo/docbook.xsl $@
    37 
    38 
    38 pythonbuild:
    39 pythonbuild:
    39 	python setup.py build
    40 	python setup.py build
    40 
    41 
    41 pythoninstall:
    42 pythoninstall: