Ticket #53800: makefile.diff

File makefile.diff, 901 bytes (added by jjstickel (Jonathan Stickel), 8 years ago)
  • Makefile

    old new  
    1 gitexecdir = ${shell git --exec-path}
    2 gitmanpath = ${shell git --man-path}
     1gitexecdir = (destroot)${shell (prefix)/bin/git --exec-path}
     2gitmanpath = (destroot)${shell (prefix)/bin/git --man-path}
    33
    44-include ./config.mak
    55
     
    88endif
    99
    1010BASH_PATH_SQ = $(subst ','\'',$(BASH_PATH))
    11 GIT_LATEXDIFF_VERSION=${shell git describe --tags HEAD 2>/dev/null || \
    12                          echo unknown-version}
     11GIT_LATEXDIFF_VERSION=v(version)
    1312gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
    1413gitmanpath_SQ = $(subst ','\'',$(gitmanpath))
    1514
     
    3130install: install-bin install-doc
    3231
    3332install-bin:
     33        mkdir -p ${gitexecdir}
    3434        sed -e '1s|#!.*/bash|#!$(BASH_PATH_SQ)|' \
    3535            -e 's|@GIT_LATEXDIFF_VERSION@|$(GIT_LATEXDIFF_VERSION)|' \
    3636                $(SCRIPT) > '$(gitexecdir_SQ)/$(SCRIPT)'