forked from axel-download-accelerator/axel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
66 lines (58 loc) · 1.48 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
# XXX Fix disagreement between aclocal and make
# (aclocal doesn't update based on mtime)
ACLOCAL = touch $@; @ACLOCAL@
SUBDIRS = src po
dist_man_MANS = man/axel.1
.txt.1:
$(MAKE) -C $(@D) $(@F)
EXTRA_DIST = \
CONTRIBUTING.md \
CREDITS \
doc/axelrc.example \
man/axel.txt \
man/Makefile
distclean-local:
-rm -rf autom4te.cache/ \
m4/
-rm -f *~ \
aclocal.m4 \
compile \
config.* \
configure \
depcomp \
install-sh \
Makefile.in \
missing \
po/*.gmo \
po/*.po~ \
po/Makefile.in.in \
po/Makevars.template \
po/Rules-quot \
po/axel.pot \
po/stamp-po \
src/Makefile.in
remove_git_dep = sed -i -e \
'/^am__aclocal/,/[^\\]$$/ s:[$$](top_srcdir)/[.]git/[^ ]* *::g'
dist-hook:
rm -rf $(distdir)/.git
read _ RELDATE _ < $(top_srcdir)/VERSION; \
TZ= find $(distdir) \
-name Makefile.in -exec $(remove_git_dep) '{}' ';' \
-exec touch -d "$$RELDATE" '{}' + \
-o -exec touch -d "$$RELDATE" '{}' +
MSG = echo '==>'
ERR = ! echo '!!! ERROR:'
.PHONY: relcheck
relcheck:
@$(MSG) 'Checking for non-UTF8 translations...'
@$(AWK) -f $(top_srcdir)/scripts/pocheck.awk $(top_srcdir)/po/*.po
@$(MSG) 'Checking the state of the project...'
@ m=`git status --porcelain=1 | wc -l`; \
test "$$m" = 0 \
&& $(MSG) 'the working tree is clean' \
|| $(ERR) "$$m" 'modified files in the working tree'
@test -f "$(top_srcdir)/.git/refs/tags/v$(VERSION)" \
&& $(MSG) 'v$(VERSION) tag found' \
|| $(ERR) 'v$(VERSION) tag missing'
@$(MSG) Everything OK