Lines 123-128
Link Here
|
123 |
# |
123 |
# |
124 |
# Define NO_PERL_MAKEMAKER if you cannot use Makefiles generated by perl's |
124 |
# Define NO_PERL_MAKEMAKER if you cannot use Makefiles generated by perl's |
125 |
# MakeMaker (e.g. using ActiveState under Cygwin). |
125 |
# MakeMaker (e.g. using ActiveState under Cygwin). |
|
|
126 |
|
127 |
# Define NO_PERL if you do not want Perl scripts at all. |
126 |
# |
128 |
# |
127 |
# Define NO_TCLTK if you do not want Tcl/Tk GUI. |
129 |
# Define NO_TCLTK if you do not want Tcl/Tk GUI. |
128 |
# |
130 |
# |
Lines 233-247
Link Here
|
233 |
git-stash.sh \ |
235 |
git-stash.sh \ |
234 |
git-help--browse.sh |
236 |
git-help--browse.sh |
235 |
|
237 |
|
|
|
238 |
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) |
239 |
ifndef NO_PERL |
236 |
SCRIPT_PERL = \ |
240 |
SCRIPT_PERL = \ |
237 |
git-add--interactive.perl \ |
241 |
git-add--interactive.perl \ |
238 |
git-archimport.perl git-cvsimport.perl git-relink.perl \ |
242 |
git-archimport.perl git-cvsimport.perl git-relink.perl \ |
239 |
git-cvsserver.perl git-remote.perl git-cvsexportcommit.perl \ |
243 |
git-cvsserver.perl git-remote.perl git-cvsexportcommit.perl \ |
240 |
git-send-email.perl git-svn.perl |
244 |
git-send-email.perl git-svn.perl |
241 |
|
245 |
SCRIPTS += $(patsubst %.perl,%,$(SCRIPT_PERL)) \ |
242 |
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \ |
246 |
git-instaweb |
243 |
$(patsubst %.perl,%,$(SCRIPT_PERL)) \ |
247 |
else |
244 |
git-instaweb |
248 |
SCRIPT_PERL = |
|
|
249 |
endif |
245 |
|
250 |
|
246 |
# ... and all the rest that could be moved out of bindir to gitexecdir |
251 |
# ... and all the rest that could be moved out of bindir to gitexecdir |
247 |
PROGRAMS = \ |
252 |
PROGRAMS = \ |
Lines 276-282
Link Here
|
276 |
ALL_PROGRAMS += git-merge-subtree$X |
281 |
ALL_PROGRAMS += git-merge-subtree$X |
277 |
|
282 |
|
278 |
# what 'all' will build but not install in gitexecdir |
283 |
# what 'all' will build but not install in gitexecdir |
279 |
OTHER_PROGRAMS = git$X gitweb/gitweb.cgi |
284 |
OTHER_PROGRAMS = git$X |
|
|
285 |
ifndef NO_PERL |
286 |
OTHER_PROGRAMS += gitweb/gitweb.cgi |
287 |
endif |
280 |
|
288 |
|
281 |
# Set paths to tools early so that they can be used for version tests. |
289 |
# Set paths to tools early so that they can be used for version tests. |
282 |
ifndef SHELL_PATH |
290 |
ifndef SHELL_PATH |
Lines 570-575
Link Here
|
570 |
endif |
578 |
endif |
571 |
endif |
579 |
endif |
572 |
|
580 |
|
|
|
581 |
ifdef NO_PERL |
582 |
BASIC_CFLAGS += -DNO_PERL |
583 |
endif |
584 |
|
573 |
ifdef ZLIB_PATH |
585 |
ifdef ZLIB_PATH |
574 |
BASIC_CFLAGS += -I$(ZLIB_PATH)/include |
586 |
BASIC_CFLAGS += -I$(ZLIB_PATH)/include |
575 |
EXTLIBS += -L$(ZLIB_PATH)/$(lib) $(CC_LD_DYNPATH)$(ZLIB_PATH)/$(lib) |
587 |
EXTLIBS += -L$(ZLIB_PATH)/$(lib) $(CC_LD_DYNPATH)$(ZLIB_PATH)/$(lib) |
Lines 731-736
Link Here
|
731 |
ifeq ($(TCLTK_PATH),) |
743 |
ifeq ($(TCLTK_PATH),) |
732 |
NO_TCLTK=NoThanks |
744 |
NO_TCLTK=NoThanks |
733 |
endif |
745 |
endif |
|
|
746 |
ifeq ($(PERL_PATH),) |
747 |
NO_PERL=NoThanks |
748 |
export NO_PERL |
749 |
export NO_PERL_MAKEMAKER |
750 |
endif |
734 |
|
751 |
|
735 |
QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir |
752 |
QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir |
736 |
QUIET_SUBDIR1 = |
753 |
QUIET_SUBDIR1 = |
Lines 803-809
Link Here
|
803 |
$(QUIET_SUBDIR0)git-gui $(QUIET_SUBDIR1) all |
820 |
$(QUIET_SUBDIR0)git-gui $(QUIET_SUBDIR1) all |
804 |
$(QUIET_SUBDIR0)gitk-git $(QUIET_SUBDIR1) all |
821 |
$(QUIET_SUBDIR0)gitk-git $(QUIET_SUBDIR1) all |
805 |
endif |
822 |
endif |
|
|
823 |
ifndef NO_PERL |
806 |
$(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' all |
824 |
$(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' all |
|
|
825 |
endif |
807 |
$(QUIET_SUBDIR0)templates $(QUIET_SUBDIR1) |
826 |
$(QUIET_SUBDIR0)templates $(QUIET_SUBDIR1) |
808 |
|
827 |
|
809 |
strip: $(PROGRAMS) git$X |
828 |
strip: $(PROGRAMS) git$X |
Lines 844-849
Link Here
|
844 |
chmod +x $@+ && \ |
863 |
chmod +x $@+ && \ |
845 |
mv $@+ $@ |
864 |
mv $@+ $@ |
846 |
|
865 |
|
|
|
866 |
ifndef NO_PERL |
847 |
$(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak |
867 |
$(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak |
848 |
|
868 |
|
849 |
perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL |
869 |
perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL |
Lines 902-907
Link Here
|
902 |
$@.sh > $@+ && \ |
922 |
$@.sh > $@+ && \ |
903 |
chmod +x $@+ && \ |
923 |
chmod +x $@+ && \ |
904 |
mv $@+ $@ |
924 |
mv $@+ $@ |
|
|
925 |
endif # NO_PERL |
905 |
|
926 |
|
906 |
configure: configure.ac |
927 |
configure: configure.ac |
907 |
$(QUIET_GEN)$(RM) $@ $<+ && \ |
928 |
$(QUIET_GEN)$(RM) $@ $<+ && \ |
Lines 1052-1058
Link Here
|
1052 |
$(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexecdir_SQ)' |
1073 |
$(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexecdir_SQ)' |
1053 |
$(INSTALL) git$X '$(DESTDIR_SQ)$(bindir_SQ)' |
1074 |
$(INSTALL) git$X '$(DESTDIR_SQ)$(bindir_SQ)' |
1054 |
$(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install |
1075 |
$(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install |
|
|
1076 |
ifndef NO_PERL |
1055 |
$(MAKE) -C perl prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install |
1077 |
$(MAKE) -C perl prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install |
|
|
1078 |
endif |
1056 |
ifndef NO_TCLTK |
1079 |
ifndef NO_TCLTK |
1057 |
$(MAKE) -C gitk-git install |
1080 |
$(MAKE) -C gitk-git install |
1058 |
$(MAKE) -C git-gui install |
1081 |
$(MAKE) -C git-gui install |
Lines 1141-1149
Link Here
|
1141 |
$(RM) -r $(GIT_TARNAME) .doc-tmp-dir |
1164 |
$(RM) -r $(GIT_TARNAME) .doc-tmp-dir |
1142 |
$(RM) $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz |
1165 |
$(RM) $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz |
1143 |
$(RM) $(htmldocs).tar.gz $(manpages).tar.gz |
1166 |
$(RM) $(htmldocs).tar.gz $(manpages).tar.gz |
1144 |
$(RM) gitweb/gitweb.cgi |
|
|
1145 |
$(MAKE) -C Documentation/ clean |
1167 |
$(MAKE) -C Documentation/ clean |
|
|
1168 |
ifndef NO_PERL |
1169 |
$(RM) gitweb/gitweb.cgi |
1146 |
$(MAKE) -C perl clean |
1170 |
$(MAKE) -C perl clean |
|
|
1171 |
endif |
1147 |
$(MAKE) -C templates/ clean |
1172 |
$(MAKE) -C templates/ clean |
1148 |
$(MAKE) -C t/ clean |
1173 |
$(MAKE) -C t/ clean |
1149 |
ifndef NO_TCLTK |
1174 |
ifndef NO_TCLTK |