2 DATE
:= $(shell date
+%Y-
%m-
%d
)
4 INSTALL
= /usr
/bin
/install -c
8 mandir = $(prefix)/share
/man
/man1
10 MAN_TXT
= $(wildcard *.txt
)
11 MAN_HTML
=$(patsubst %.txt
,%.html
,$(MAN_TXT
))
12 MAN
=$(patsubst %.txt
,%.1,$(MAN_TXT
))
14 PROGRAMS
= darcs-fast-export darcs-fast-import d2x x2d git-darcs
19 $(INSTALL
) -d
$(DESTDIR
)$(bindir)
20 $(INSTALL
) -d
$(DESTDIR
)$(mandir)
21 $(INSTALL
) -m755
$(PROGRAMS
) $(DESTDIR
)$(bindir)
22 $(INSTALL
) -m644
*.1 $(DESTDIR
)$(mandir)
24 doc
: HEADER.html Changelog html
26 HEADER.html
: README Makefile
27 asciidoc
-a toc
-a numbered
-a sectids
-o HEADER.html README
29 Changelog
: .git
/refs
/heads
/master
35 %.1: %.txt asciidoc.conf
36 a2x
--asciidoc-opts
="-f asciidoc.conf" \
37 -a dfe_version
=$(VERSION
) -a dfe_date
=$(DATE
) -f manpage
$<
44 git archive
--format
=tar --prefix=darcs-fast-export-
$(VERSION
)/ $(VERSION
) > darcs-fast-export-
$(VERSION
).
tar
45 mkdir
-p darcs-fast-export-
$(VERSION
)
46 git log
> darcs-fast-export-
$(VERSION
)/Changelog
47 tar rf darcs-fast-export-
$(VERSION
).
tar darcs-fast-export-
$(VERSION
)/Changelog
48 rm -rf darcs-fast-export-
$(VERSION
)
49 gzip
-f
-9 darcs-fast-export-
$(VERSION
).
tar
52 git tag
-l |grep
-q
$(VERSION
) || dg tag
$(VERSION
)
54 gpg
--comment
"See http://vmiklos.hu/gpg/ for info" \
55 -ba darcs-fast-export-
$(VERSION
).
tar.gz