fix timezones in darcs-fast-export, take 2
[girocco-darcs-fast-export.git] / Makefile
blob0c81c6827de54a0377eaf6a6955a28f12fd1909f
1 VERSION = 0.9
2 DATE := $(shell date +%Y-%m-%d)
4 INSTALL = /usr/bin/install -c
5 DESTDIR =
6 prefix = /usr
7 bindir = $(prefix)/bin
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
16 all: man
18 install: all
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
30 git log >Changelog
32 %.html: %.txt
33 asciidoc $^
35 %.1: %.txt asciidoc.conf
36 a2x --asciidoc-opts="-f asciidoc.conf" \
37 -a dfe_version=$(VERSION) -a dfe_date=$(DATE) -f manpage $<
39 man: $(MAN)
41 html: $(MAN_HTML)
43 dist:
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
51 release:
52 git tag -l |grep -q $(VERSION) || dg tag $(VERSION)
53 $(MAKE) dist
54 gpg --comment "See http://vmiklos.hu/gpg/ for info" \
55 -ba darcs-fast-export-$(VERSION).tar.gz