Lines 263-268
Link Here
|
263 |
# |
263 |
# |
264 |
# Define NO_TCLTK if you do not want Tcl/Tk GUI. |
264 |
# Define NO_TCLTK if you do not want Tcl/Tk GUI. |
265 |
# |
265 |
# |
|
|
266 |
# Define NO_CVS if you do not want any CVS interface utilities. |
267 |
# |
266 |
# The TCL_PATH variable governs the location of the Tcl interpreter |
268 |
# The TCL_PATH variable governs the location of the Tcl interpreter |
267 |
# used to optimize git-gui for your system. Only used if NO_TCLTK |
269 |
# used to optimize git-gui for your system. Only used if NO_TCLTK |
268 |
# is not set. Defaults to the bare 'tclsh'. |
270 |
# is not set. Defaults to the bare 'tclsh'. |
Lines 437-442
Link Here
|
437 |
PROGRAM_OBJS = |
439 |
PROGRAM_OBJS = |
438 |
PROGRAMS = |
440 |
PROGRAMS = |
439 |
SCRIPT_PERL = |
441 |
SCRIPT_PERL = |
|
|
442 |
SCRIPT_PERL_CVS = |
440 |
SCRIPT_PYTHON = |
443 |
SCRIPT_PYTHON = |
441 |
SCRIPT_SH = |
444 |
SCRIPT_SH = |
442 |
SCRIPT_LIB = |
445 |
SCRIPT_LIB = |
Lines 478-497
Link Here
|
478 |
SCRIPT_PERL += git-add--interactive.perl |
481 |
SCRIPT_PERL += git-add--interactive.perl |
479 |
SCRIPT_PERL += git-difftool.perl |
482 |
SCRIPT_PERL += git-difftool.perl |
480 |
SCRIPT_PERL += git-archimport.perl |
483 |
SCRIPT_PERL += git-archimport.perl |
481 |
SCRIPT_PERL += git-cvsexportcommit.perl |
|
|
482 |
SCRIPT_PERL += git-cvsimport.perl |
483 |
SCRIPT_PERL += git-cvsserver.perl |
484 |
SCRIPT_PERL += git-relink.perl |
484 |
SCRIPT_PERL += git-relink.perl |
485 |
SCRIPT_PERL += git-send-email.perl |
485 |
SCRIPT_PERL += git-send-email.perl |
486 |
SCRIPT_PERL += git-svn.perl |
486 |
SCRIPT_PERL += git-svn.perl |
487 |
|
487 |
|
|
|
488 |
SCRIPT_PERL_CVS += git-cvsexportcommit.perl |
489 |
SCRIPT_PERL_CVS += git-cvsimport.perl |
490 |
SCRIPT_PERL_CVS += git-cvsserver.perl |
491 |
|
488 |
SCRIPT_PYTHON += git-p4.py |
492 |
SCRIPT_PYTHON += git-p4.py |
489 |
|
493 |
|
490 |
NO_INSTALL += git-remote-testgit |
494 |
NO_INSTALL += git-remote-testgit |
491 |
|
495 |
|
492 |
# Generated files for scripts |
496 |
# Generated files for scripts |
493 |
SCRIPT_SH_GEN = $(patsubst %.sh,%,$(SCRIPT_SH)) |
497 |
SCRIPT_SH_GEN = $(patsubst %.sh,%,$(SCRIPT_SH)) |
494 |
SCRIPT_PERL_GEN = $(patsubst %.perl,%,$(SCRIPT_PERL)) |
498 |
SCRIPT_PERL_GEN = $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) |
495 |
SCRIPT_PYTHON_GEN = $(patsubst %.py,%,$(SCRIPT_PYTHON)) |
499 |
SCRIPT_PYTHON_GEN = $(patsubst %.py,%,$(SCRIPT_PYTHON)) |
496 |
|
500 |
|
497 |
SCRIPT_SH_INS = $(filter-out $(NO_INSTALL),$(SCRIPT_SH_GEN)) |
501 |
SCRIPT_SH_INS = $(filter-out $(NO_INSTALL),$(SCRIPT_SH_GEN)) |
Lines 1779-1786
Link Here
|
1779 |
$(join -DMAJOR= -DMINOR= -DPATCH=, $(wordlist 1,3,$(subst -, ,$(subst ., ,$(GIT_VERSION))))) \ |
1783 |
$(join -DMAJOR= -DMINOR= -DPATCH=, $(wordlist 1,3,$(subst -, ,$(subst ., ,$(GIT_VERSION))))) \ |
1780 |
-DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" $< -o $@ |
1784 |
-DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" $< -o $@ |
1781 |
|
1785 |
|
|
|
1786 |
_SCRIPT_PERL_BUILD = |
1787 |
_SCRIPT_PERL_NOBUILD = |
1788 |
|
1782 |
ifndef NO_PERL |
1789 |
ifndef NO_PERL |
1783 |
$(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak |
1790 |
|
|
|
1791 |
_SCRIPT_PERL_BUILD += $(SCRIPT_PERL) |
1792 |
|
1793 |
ifndef NO_CVS |
1794 |
_SCRIPT_PERL_BUILD += $(SCRIPT_PERL_CVS) |
1795 |
else # NO_CVS |
1796 |
_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL_CVS) |
1797 |
endif # NO_CVS |
1784 |
|
1798 |
|
1785 |
perl/perl.mak: perl/PM.stamp |
1799 |
perl/perl.mak: perl/PM.stamp |
1786 |
|
1800 |
|
Lines 1792-1798
Link Here
|
1792 |
perl/perl.mak: GIT-CFLAGS GIT-PREFIX perl/Makefile perl/Makefile.PL |
1806 |
perl/perl.mak: GIT-CFLAGS GIT-PREFIX perl/Makefile perl/Makefile.PL |
1793 |
$(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F) |
1807 |
$(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F) |
1794 |
|
1808 |
|
1795 |
$(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl GIT-VERSION-FILE |
1809 |
$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): % : %.perl GIT-VERSION-FILE |
1796 |
$(QUIET_GEN)$(RM) $@ $@+ && \ |
1810 |
$(QUIET_GEN)$(RM) $@ $@+ && \ |
1797 |
INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C perl -s --no-print-directory instlibdir` && \ |
1811 |
INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C perl -s --no-print-directory instlibdir` && \ |
1798 |
sed -e '1{' \ |
1812 |
sed -e '1{' \ |
Lines 1817-1830
Link Here
|
1817 |
chmod +x $@+ && \ |
1831 |
chmod +x $@+ && \ |
1818 |
mv $@+ $@ |
1832 |
mv $@+ $@ |
1819 |
else # NO_PERL |
1833 |
else # NO_PERL |
1820 |
$(patsubst %.perl,%,$(SCRIPT_PERL)) git-instaweb: % : unimplemented.sh |
1834 |
_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL) $(SCRIPT_PERL_CVS) git-instaweb |
|
|
1835 |
endif # NO_PERL |
1836 |
|
1837 |
# This is any perl scripts that were disabled it might be empty... |
1838 |
$(patsubst %.perl,%,$(_SCRIPT_PERL_NOBUILD)): % : unimplemented.sh |
1821 |
$(QUIET_GEN)$(RM) $@ $@+ && \ |
1839 |
$(QUIET_GEN)$(RM) $@ $@+ && \ |
1822 |
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \ |
1840 |
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \ |
1823 |
-e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \ |
1841 |
-e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \ |
1824 |
unimplemented.sh >$@+ && \ |
1842 |
unimplemented.sh >$@+ && \ |
1825 |
chmod +x $@+ && \ |
1843 |
chmod +x $@+ && \ |
1826 |
mv $@+ $@ |
1844 |
mv $@+ $@ |
1827 |
endif # NO_PERL |
|
|
1828 |
|
1845 |
|
1829 |
ifndef NO_PYTHON |
1846 |
ifndef NO_PYTHON |
1830 |
$(SCRIPT_PYTHON_GEN): GIT-CFLAGS GIT-PREFIX GIT-PYTHON-VARS |
1847 |
$(SCRIPT_PYTHON_GEN): GIT-CFLAGS GIT-PREFIX GIT-PYTHON-VARS |