Makefile.am 1.89 KB
Newer Older
David Zeuthen's avatar
David Zeuthen committed
1 2
## Process this file with automake to produce Makefile.in

3
SUBDIRS = data src doc tools policy po test
David Zeuthen's avatar
David Zeuthen committed
4

David Zeuthen's avatar
David Zeuthen committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# Creating ChangeLog from git log (taken from cairo/Makefile.am):
ChangeLog: $(srcdir)/ChangeLog

$(srcdir)/ChangeLog:
	@if test -d "$(srcdir)/.git"; then \
	  (cd "$(srcdir)" && \
	  ./missing --run git-log --stat) | fmt --split-only > $@.tmp \
	  && mv -f $@.tmp $@ \
	  || ($(RM) $@.tmp; \
	      echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
	      (test -f $@ || echo git-log is required to generate this file >> $@)); \
	else \
	  test -f $@ || \
	  (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
	  echo A git checkout and git-log is required to generate this file >> $@); \
	fi

22 23 24
if POLKIT_GCOV_ENABLED
.PHONY: ChangeLog $(srcdir)/ChangeLog coverage-report.txt
coverage-report.txt :
25 26
	make -C src/kit coverage-report.txt
	make -C src/polkit coverage-report.txt
27 28 29
	make -C src/polkit-dbus coverage-report.txt
	make -C src/polkit-grant coverage-report.txt
	$(top_srcdir)/test/create-coverage-report.sh "PolicyKit" `cat src/kit/covered-files.txt src/polkit/covered-files.txt src/polkit-dbus/covered-files.txt src/polkit-grant/covered-files.txt` > coverage-report.txt
30 31 32 33

check-coverage: coverage-report.txt
	cat coverage-report.txt
else
David Zeuthen's avatar
David Zeuthen committed
34 35
.PHONY: ChangeLog $(srcdir)/ChangeLog

36 37 38 39 40 41 42
coverage-report.txt:
	@echo "Need to reconfigure with --enable-gcov"

check-coverage:
	@echo "Need to reconfigure with --enable-gcov"
endif

43 44 45 46 47 48
if POLKIT_BUILD_TESTS
install:
	@echo "Cowardly refusing to install with --enable-tests."
	@exit 1
endif

49 50 51 52 53 54 55 56 57 58 59 60
EXTRA_DIST = 			\
	HACKING 		\
	mkinstalldirs 		\
	ChangeLog 		\
	intltool-extract.in 	\
	intltool-merge.in 	\
	intltool-update.in

DISTCLEANFILES = \
	intltool-extract	\
	intltool-merge		\
	intltool-update
David Zeuthen's avatar
David Zeuthen committed
61

62
# xsltproc barfs on 'make distcheck'; disable for now
63
DISTCHECK_CONFIGURE_FLAGS=--disable-man-pages --disable-gtk-doc
64

David Zeuthen's avatar
David Zeuthen committed
65 66
clean-local :
	rm -f *~