@@ -10,16 +10,11 @@ VERBOSE :=
1010TESTREPO := $(CURDIR )
1111KEY := 5A8A11E44AD2A1623B84E5AFC5C0C5C7218D18D7
1212REPO := incrypt::$(CURDIR ) /crypt
13- CPPFLAGS := -Igit
1413
15- .PHONY : all gitbuild man test clean
14+ .PHONY : all man test clean
1615
1716all : git-remote-incrypt man
1817
19- COMPILER_FEATURES := $(shell git/detect-compiler $(CC ) )
20- include git/config.mak.dev
21- CFLAGS += $(DEVELOPER_CFLAGS )
22-
2318ifndef NODOC
2419man : man1/git-incrypt.1
2520testman : man
2924testman :
3025endif
3126
32- git-remote-incrypt : incrypt.o git/common-main.o git/libgit.a git/xdiff/lib.a git/reftable/libreftable.a
33- gcc -lz -o $@ $^
27+ git-% : git/git-%
28+ cp $< $@
29+
30+ git/git-remote-incrypt : git/incrypt.c git/config.mak
31+ $(MAKE ) -C $(@D ) DEVELOPER:=1 $(@F )
3432
35- man1 /% .1 : man1/ % .xml git/Documentation/manpage-normal.xsl git/Documentation/manpage-bold-literal.xsl
36- cd man1 && xmlto $( patsubst % ,-m ../ % , $( wordlist 2, 3, $^ ) ) man ../ $<
33+ git /% .c : % .c
34+ cp $< $@
3735
38- man1/% .xml : % .adoc git/Documentation/asciidoc.conf
36+ man1/% .1 : git/Documentation/% .1
3937 mkdir -p man1
40- asciidoc -f $( word 2, $^ ) -b docbook -d manpage -o $@ $<
38+ cp $< $@
4139
42- git/Documentation/asciidoc.conf : gitdoc
40+ git/Documentation/% .1 : git/Documentation/% .adoc git/config.mak
41+ $(MAKE ) -C $(@D ) DEVELOPER:=1 $(@F )
4342
44- gitbuild :
45- $( MAKE ) -C git
43+ git/Documentation/ % .adoc : % .adoc
44+ cp $< $@
4645
47- gitdoc :
48- $( MAKE ) -C git doc
46+ git/config.mak : config.mak
47+ cp $< $@
4948
5049test : testman
5150 rm -rf crypt tst
@@ -81,4 +80,6 @@ install: man
8180 install -D -m 644 -t $(DESTDIR )$(MANDIR ) /man1 man1/git-incrypt.1
8281
8382clean :
84- rm -rf * .o git-remote-incrypt man1 crypt tst
83+ $(MAKE ) -C git clean
84+ rm -rf git-remote-incrypt man1 crypt tst \
85+ git/config.mak git/* incrypt* git/Documentation/* incrypt*
0 commit comments