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