2 # Makefile for perl support modules and routine
7 PERL_PATH_SQ
= $(subst ','\'',$(PERL_PATH))
8 prefix_SQ = $(subst ','\'',$(prefix))
9 localedir_SQ
= $(subst ','\'',$(localedir))
15 all install instlibdir: $(makfile)
16 $(QUIET)$(MAKE) -f $(makfile) $@
19 $(QUIET)test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0
27 ifdef NO_PERL_MAKEMAKER
28 instdir_SQ = $(subst ','\'',$(prefix)/lib
)
32 modules
+= Git
/IndexInfo
35 modules
+= Git
/SVN
/Memoize
/YAML
36 modules
+= Git
/SVN
/Fetcher
37 modules
+= Git
/SVN
/Editor
38 modules
+= Git
/SVN
/GlobSpec
39 modules
+= Git
/SVN
/Log
40 modules
+= Git
/SVN
/Migration
41 modules
+= Git
/SVN
/Prompt
43 modules
+= Git
/SVN
/Utils
45 $(makfile
): ..
/GIT-CFLAGS Makefile
46 echo
all: private-Error.pm Git.pm Git
/I18N.pm
> $@
48 for i in
$(modules
); \
50 if
test $$i = $${i
%/*}; \
56 echo
' $(RM) blib/lib/'$$i'.pm' >> $@
; \
57 echo
' mkdir -p blib/lib'$$subdir >> $@
; \
58 echo
' cp '$$i'.pm blib/lib/'$$i'.pm' >> $@
; \
60 echo
' $(RM) blib/lib/Error.pm' >> $@
61 '$(PERL_PATH_SQ)' -MError
-e
'exit($$Error::VERSION < 0.15009)' || \
62 echo
' cp private-Error.pm blib/lib/Error.pm' >> $@
65 for i in
$(modules
); \
67 if
test $$i = $${i
%/*}; \
73 echo
' $(RM) "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@
; \
74 echo
' mkdir -p "$$(DESTDIR)$(instdir_SQ)'$$subdir'"' >> $@
; \
75 echo
' cp '$$i'.pm "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@
; \
77 echo
' $(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
78 '$(PERL_PATH_SQ)' -MError
-e
'exit($$Error::VERSION < 0.15009)' || \
79 echo
' cp private-Error.pm "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
80 echo instlibdir
: >> $@
81 echo
' echo $(instdir_SQ)' >> $@
83 $(makfile
): Makefile.PL ..
/GIT-CFLAGS
84 $(PERL_PATH
) $< PREFIX
='$(prefix_SQ)' INSTALL_BASE
='' --localedir
='$(localedir_SQ)'
87 # this is just added comfort for calling make directly in perl dir
88 # (even though GIT-CFLAGS aren't used yet. If ever)
90 $(MAKE
) -C .. GIT-CFLAGS