Makefile.am 1.15 KB
Newer Older
1 2 3 4 5 6
SUBDIRS = \
	data \
	docs \
	src \
	tests \
	$(NULL)
Pavel Hrdina's avatar
Pavel Hrdina committed
7

8 9
ACLOCAL_AMFLAGS = -I m4

Pavel Hrdina's avatar
Pavel Hrdina committed
10 11 12 13
EXTRA_DIST = \
	$(PACKAGE).spec \
	$(PACKAGE).spec.in \
	AUTHORS.in \
14 15
	HACKING.md \
	README.md \
Pavel Hrdina's avatar
Pavel Hrdina committed
16 17
	$(NULL)

18 19 20
DISTCLEAN_FILES = \
	$(PACKAGE).spec \
	$(NULL)
Pavel Hrdina's avatar
Pavel Hrdina committed
21 22

rpm: clean
Andrea Bolognani's avatar
Andrea Bolognani committed
23
	@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.xz)
Pavel Hrdina's avatar
Pavel Hrdina committed
24 25 26 27 28 29 30

dist-hook: gen-AUTHORS

# Generate the AUTHORS file (with all entries since the switch to git)
# and insert it into the directory we're about to use to create a tarball.
.PHONY: gen-AUTHORS
gen-AUTHORS:
31 32 33 34 35 36 37 38 39 40 41 42 43
	$(AM_V_GEN)\
	if test -d $(srcdir)/.git; then \
	  ( \
	    cd $(srcdir) && \
	    git log --pretty=format:'    %aN <%aE>' | sort -u \
	  ) > all.list && \
	  sort -u $(srcdir)/AUTHORS.in > maint.list && \
	  comm -23 all.list maint.list > contrib.list && \
	  contrib="`cat contrib.list`" && \
	  perl -p -e "s/#contributorslist#// and print '$$contrib'" \
	    < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
	  mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS && \
	  rm -f all.list maint.list contrib.list; \
Pavel Hrdina's avatar
Pavel Hrdina committed
44
	fi
45 46 47 48

# E501: (line too long) warning is ignored.
.PHONY: flake8
flake8:
49
	$(FLAKE8) --show-source --ignore=E501 $(srcdir)
50 51

syntax-check: flake8