Makefile.am 2.19 KB
Newer Older
vagnum08's avatar
vagnum08 committed
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
SUBDIRS = data cpupower_gui bin po

EXTRA_DIST = AUTHORS

AUTHORS:
	$(AM_V_GEN)if test -d "$(srcdir)/.git";                        \
	then                                                           \
		echo Creating $@ &&                                    \
		( cd "$(top_srcdir)" &&                                \
		  echo '# Generated by Makefile. Do not edit.'; echo;  \
		  git log --no-merges --pretty=format:"%an" $(SUBDIRS) \
		  | sort | uniq ) > $@.tmp                             \
		&& mv -f $@.tmp $@                                     \
		|| ( rm -f $@.tmp ;                                    \
		     echo Failed to generate $@ >&2 );                 \
	else touch $@; fi

# Generate the ChangeLog.
@GENERATE_CHANGELOG_RULES@
dist-hook: dist-ChangeLog

pycheck_dirs = bin cpupower_gui

check-local:
	@echo "  CHECK  Pyflakes" $(pycheck_dirs)
	@if type pyflakes >/dev/null 2>&1; then                        \
		(cd $(abs_top_srcdir) && pyflakes $(pycheck_dirs) );   \
	else echo "skipped, pyflakes not installed";                   \
	fi
	@if test -z "$$SKIP_PEP8"; then                                \
		echo "  CHECK  PEP8";                                  \
		if type pep8 >/dev/null 2>&1; then                     \
			(cd $(abs_top_srcdir) && pep8 --ignore=E501,E123,E124,E402,E731 --repeat --show-source $(pycheck_dirs) ); \
		else echo "skipped, pep8 not installed";               \
		fi;                                                    \
	fi

GITIGNOREFILES =                                                       \
	**/*.swp                                                       \
	*.o                                                            \
	aclocal.m4                                                     \
	build-aux                                                      \
	ChangeLog                                                      \
	config                                                         \
	config.h.in                                                    \
	gtk-doc.m4                                                     \
	gtk-doc.make                                                   \
	INSTALL                                                        \
	$(NULL)

-include $(top_srcdir)/git.mk