Makefile
branchdebian
changeset 229 3a28047ec6dc
parent 227 8ce190faa5c2
child 347 301479a4acdf
child 350 bb7ee0a13ea9
equal deleted inserted replaced
228:f98f716b2ae8 229:3a28047ec6dc
     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 DOCBOOK_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 
    16 setup-useradd: installfiles useradd inituser
    17 setup-useradd: installfiles useradd inituser
    17 
    18 
    18 installetc:
    19 installetc:
    19 	$(INSTALL) -d $(DESTDIR)$(ETCDIR)
    20 	$(INSTALL) -d $(DESTDIR)$(ETCDIR)
    20 	$(INSTALL) -m 644 -t $(DESTDIR)$(ETCDIR) \
    21 	$(INSTALL) -m 644 -t $(DESTDIR)$(ETCDIR) \
    21 	    src/init/conf/remote-hgrc src/init/conf/access.conf
    22 	    src/init/conf/access.conf
       
    23 	$(INSTALL) -d $(DESTDIR)$(ETCDIR)/remote-hgrc.d
       
    24 	$(INSTALL) -m 644 -t $(DESTDIR)$(ETCDIR)/remote-hgrc.d \
       
    25 	    src/init/conf/remote-hgrc.d/access.rc \
       
    26 	    src/init/conf/remote-hgrc.d/logging.rc
    22 	$(INSTALL) -d $(DESTDIR)$(ETCDIR)/keys/root
    27 	$(INSTALL) -d $(DESTDIR)$(ETCDIR)/keys/root
    23 	$(INSTALL) -d $(DESTDIR)$(ETCDIR)/keys/users
    28 	$(INSTALL) -d $(DESTDIR)$(ETCDIR)/keys/users
    24 
    29 
    25 installdoc: build/html/index.html
    30 installdoc: build/html/index.html
    26 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)
    31 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)
    27 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) README 
    32 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR) README 
    28 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)/html
    33 	$(INSTALL) -d $(DESTDIR)$(DOCDIR)/html
    29 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
    34 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
    30 
    35 
    31 build/html/index.html: doc/manual.docbook
    36 build/html/index.html: doc/manual.docbook
    32 	xsltproc --nonet -o $@ /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl $^
    37 	xsltproc --nonet -o $@ $(DOCBOOK_XSL)/html/docbook.xsl $^
    33 
    38 
    34 build/pdf/manual.pdf: doc/manual.docbook
    39 build/pdf/manual.pdf: doc/manual.docbook
    35 	mkdir -p build/pdf
    40 	mkdir -p build/pdf
    36 	fop -xml $^ -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl $@
    41 	fop -xml $^ -xsl $(DOCBOOK_XSL)/fo/docbook.xsl $@
    37 
    42 
    38 pythonbuild:
    43 pythonbuild:
    39 	python setup.py build
    44 	python setup.py build
    40 
    45 
    41 pythoninstall:
    46 pythoninstall: