Makefile
branchstable
changeset 10456 64a6a896e5fb
parent 10134 821793e3049c
child 10961 ce6d56b95f2e
equal deleted inserted replaced
10428:e553a425751d 10456:64a6a896e5fb
       
     1 # If you want to change PREFIX, do not just edit it below. The changed
       
     2 # value wont get passed on to recursive make calls. You should instead
       
     3 # override the variable on the command like:
       
     4 #
       
     5 # % make PREFIX=/opt/ install
       
     6 
     1 PREFIX=/usr/local
     7 PREFIX=/usr/local
     2 export PREFIX
     8 export PREFIX
     3 PYTHON=python
     9 PYTHON=python
     4 PURE=
    10 PURE=
     5 PYTHON_FILES:=$(shell find mercurial hgext doc -name '*.py')
    11 PYTHON_FILES:=$(shell find mercurial hgext doc -name '*.py')
    37 
    43 
    38 clean:
    44 clean:
    39 	-$(PYTHON) setup.py clean --all # ignore errors from this command
    45 	-$(PYTHON) setup.py clean --all # ignore errors from this command
    40 	find . -name '*.py[cdo]' -exec rm -f '{}' ';'
    46 	find . -name '*.py[cdo]' -exec rm -f '{}' ';'
    41 	rm -f MANIFEST mercurial/__version__.py mercurial/*.so tests/*.err
    47 	rm -f MANIFEST mercurial/__version__.py mercurial/*.so tests/*.err
    42 	rm -rf locale
    48 	rm -rf mercurial/locale
    43 	$(MAKE) -C doc clean
    49 	$(MAKE) -C doc clean
    44 
    50 
    45 install: install-bin install-doc
    51 install: install-bin install-doc
    46 
    52 
    47 install-bin: build
    53 install-bin: build
    77 test-%:
    83 test-%:
    78 	cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@
    84 	cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@
    79 
    85 
    80 update-pot: i18n/hg.pot
    86 update-pot: i18n/hg.pot
    81 
    87 
    82 i18n/hg.pot: $(PYTHON_FILES) help/*.txt
    88 i18n/hg.pot: $(PYTHON_FILES) mercurial/help/*.txt
    83 	$(PYTHON) i18n/hggettext mercurial/commands.py \
    89 	$(PYTHON) i18n/hggettext mercurial/commands.py \
    84 	  hgext/*.py hgext/*/__init__.py help/*.txt > i18n/hg.pot
    90 	  hgext/*.py hgext/*/__init__.py mercurial/help/*.txt > i18n/hg.pot
    85         # All strings marked for translation in Mercurial contain
    91         # All strings marked for translation in Mercurial contain
    86         # ASCII characters only. But some files contain string
    92         # ASCII characters only. But some files contain string
    87         # literals like this '\037\213'. xgettext thinks it has to
    93         # literals like this '\037\213'. xgettext thinks it has to
    88         # parse them even though they are not marked for translation.
    94         # parse them even though they are not marked for translation.
    89         # Extracting with an explicit encoding of ISO-8859-1 will make
    95         # Extracting with an explicit encoding of ISO-8859-1 will make