Skip to content

Commit be591d6

Browse files
committed
update git and Makefiles
1 parent 5e32010 commit be591d6

File tree

5 files changed

+28
-20
lines changed

5 files changed

+28
-20
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.*.swp
2-
*.o
2+
*~
33
/git-remote-incrypt
44
/man1
55
/crypt

.gitmodules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "git"]
22
path = git
33
url = ../../git/git.git
4+
ignore = untracked

Makefile

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,11 @@ VERBOSE :=
1010
TESTREPO := $(CURDIR)
1111
KEY := 5A8A11E44AD2A1623B84E5AFC5C0C5C7218D18D7
1212
REPO := incrypt::$(CURDIR)/crypt
13-
CPPFLAGS := -Igit
1413

15-
.PHONY: all gitbuild man test clean
14+
.PHONY: all man test clean
1615

1716
all: git-remote-incrypt man
1817

19-
COMPILER_FEATURES := $(shell git/detect-compiler $(CC))
20-
include git/config.mak.dev
21-
CFLAGS += $(DEVELOPER_CFLAGS)
22-
2318
ifndef NODOC
2419
man: man1/git-incrypt.1
2520
testman: man
@@ -29,23 +24,27 @@ man:
2924
testman:
3025
endif
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

5049
test: 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

8382
clean:
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*

config.mak

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
OBJECTS += incrypt.o
2+
3+
MAN1_TXT += git-incrypt.adoc
4+
5+
git-remote-incrypt$X: incrypt.o GIT-LDFLAGS $(GITLIBS)
6+
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)

git

Submodule git updated 434 files

0 commit comments

Comments
 (0)