File: Makefile.am

package info (click to toggle)
axel 2.17.14-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,636 kB
  • sloc: sh: 4,868; ansic: 3,718; makefile: 97; sed: 16; awk: 9
file content (44 lines) | stat: -rw-r--r-- 1,117 bytes parent folder | download | duplicates (4)
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
AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-xz

# XXX Fix disagreement between aclocal and make
# (aclocal doesn't update based on mtime)
ACLOCAL = touch $@; @ACLOCAL@

SUBDIRS = po

EXTRA_DIST = \
	scripts/pocheck.awk \
	README.md \
	CONTRIBUTING.md

include doc/Makefile.am

distclean-local:
	-rm -rf autom4te.cache
	-rm -f  *~ po/*~ po/*.gmo src/*~

dist-hook:
	rm -rf $(distdir)/.git
	read _ RELDATE _ < $(top_srcdir)/VERSION; \
	TZ= find $(distdir) -exec touch -d "$$RELDATE" '{}' +

MSG = echo '==>'
ERR = ! echo '!!! ERROR:'
.PHONY: relcheck update-po
update-po:
	$(MAKE) -C po update-po
relcheck: update-po
	@$(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


include src/Makefile.am