]> git.ipfire.org Git - thirdparty/git.git/blame - perl/Makefile
Make 'make' quiet by default
[thirdparty/git.git] / perl / Makefile
CommitLineData
f848718a
AR
1#
2# Makefile for perl support modules and routine
3#
4makfile:=perl.mak
5
6PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
7prefix_SQ = $(subst ','\'',$(prefix))
8
2314c947 9ifndef V
74f2b2a8
SP
10 QUIET = @
11endif
12
f848718a 13all install instlibdir: $(makfile)
74f2b2a8 14 $(QUIET)$(MAKE) -f $(makfile) $@
f848718a
AR
15
16clean:
74f2b2a8 17 $(QUIET)test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0
f848718a
AR
18 $(RM) ppport.h
19 $(RM) $(makfile)
20 $(RM) $(makfile).old
21
22ifdef NO_PERL_MAKEMAKER
23instdir_SQ = $(subst ','\'',$(prefix)/lib)
24$(makfile): ../GIT-CFLAGS Makefile
25 echo all: > $@
26 echo ' :' >> $@
27 echo install: >> $@
28 echo ' mkdir -p $(instdir_SQ)' >> $@
29 echo ' $(RM) $(instdir_SQ)/Git.pm; cp Git.pm $(instdir_SQ)' >> $@
30 echo ' $(RM) $(instdir_SQ)/Error.pm; \
31 cp private-Error.pm $(instdir_SQ)/Error.pm' >> $@
32 echo instlibdir: >> $@
33 echo ' echo $(instdir_SQ)' >> $@
34else
35$(makfile): Makefile.PL ../GIT-CFLAGS
2cdf87eb 36 '$(PERL_PATH_SQ)' $< PREFIX='$(prefix_SQ)'
f848718a
AR
37endif
38
39# this is just added comfort for calling make directly in perl dir
40# (even though GIT-CFLAGS aren't used yet. If ever)
41../GIT-CFLAGS:
42 $(MAKE) -C .. GIT-CFLAGS
43