10 ALL_LDFLAGS
= $(LDFLAGS
)
13 GIT_LIB
= ..
/..
/libgit.a
14 VCSSVN_LIB
= ..
/..
/vcs-svn
/lib.a
15 LIBS
= $(VCSSVN_LIB
) $(GIT_LIB
) $(EXTLIBS
)
17 QUIET_SUBDIR0
= +$(MAKE
) -C
# space to separate -C and subdir
20 ifneq ($(findstring $(MAKEFLAGS
),w
),w
)
21 PRINT_DIR
= --no-print-directory
26 ifneq ($(findstring $(MAKEFLAGS
),s
),s
)
28 QUIET_CC
= @echo
' ' CC
$@
;
29 QUIET_LINK
= @echo
' ' LINK
$@
;
30 QUIET_SUBDIR0
= +@subdir
=
31 QUIET_SUBDIR1
= ;$(NO_SUBDIR
) echo
' ' SUBDIR
$$subdir; \
32 $(MAKE
) $(PRINT_DIR
) -C
$$subdir
36 svn-fe
$X: svn-fe.o
$(VCSSVN_LIB
) $(GIT_LIB
)
37 $(QUIET_LINK
)$(CC
) $(ALL_CFLAGS
) -o
$@ svn-fe.o \
38 $(ALL_LDFLAGS
) $(LIBS
)
40 svn-fe.o
: svn-fe.c ..
/..
/vcs-svn
/svndump.h
41 $(QUIET_CC
)$(CC
) -o
$*.o
-c
$(ALL_CFLAGS
) $<
43 svn-fe.html
: svn-fe.txt
44 $(QUIET_SUBDIR0
)..
/..
/Documentation
$(QUIET_SUBDIR1
) \
45 MAN_TXT
=..
/contrib
/svn-fe
/svn-fe.txt \
49 $(QUIET_SUBDIR0
)..
/..
/Documentation
$(QUIET_SUBDIR1
) \
50 MAN_TXT
=..
/contrib
/svn-fe
/svn-fe.txt \
52 $(MV
) ..
/..
/Documentation
/svn-fe
.1 .
54 ..
/..
/vcs-svn
/lib.a
: FORCE
55 $(QUIET_SUBDIR0
)..
/..
$(QUIET_SUBDIR1
) vcs-svn
/lib.a
58 $(QUIET_SUBDIR0
)..
/..
$(QUIET_SUBDIR1
) libgit.a
61 $(RM
) svn-fe
$X svn-fe.o svn-fe.html svn-fe.xml svn-fe
.1
63 .PHONY
: all clean FORCE