Makefile
changeset 226 b472627106df
parent 221 c4c3facf5d6b
parent 218 ddd0f0d12e12
child 227 8ce190faa5c2
equal deleted inserted replaced
225:ff08fd5b1a62 226:b472627106df
     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 
    31 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) README 
    32 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) README 
    32 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)/html
    33 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)/html
    33 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
    34 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
    34 
    35 
    35 build/html/index.html: doc/manual.docbook
    36 build/html/index.html: doc/manual.docbook
    36 	xsltproc --nonet -o $@ /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl $^
    37 	xsltproc --nonet -o $@ $(XSL)/html/docbook.xsl $^
    37 
    38 
    38 build/pdf/manual.pdf: doc/manual.docbook
    39 build/pdf/manual.pdf: doc/manual.docbook
    39 	mkdir -p build/pdf
    40 	mkdir -p build/pdf
    40 	fop -xml $^ -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl $@
    41 	fop -xml $^ -xsl $(XSL)/fo/docbook.xsl $@
    41 
    42 
    42 pythonbuild:
    43 pythonbuild:
    43 	python setup.py build
    44 	python setup.py build
    44 
    45 
    45 pythoninstall:
    46 pythoninstall: