21 lines
522 B
Makefile
21 lines
522 B
Makefile
SUBDIRS = man src
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = xext.pc
|
|
|
|
EXTRA_DIST=xext.pc.in ChangeLog autogen.sh
|
|
MAINTAINERCLEANFILES=ChangeLog
|
|
|
|
.PHONY: ChangeLog
|
|
|
|
ChangeLog:
|
|
(GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
|
|
|
|
dist-hook: ChangeLog
|
|
|
|
if LINT
|
|
# Check source code with tools like lint & sparse
|
|
lint:
|
|
(cd src && $(MAKE) $(MFLAGS) lint)
|
|
endif LINT
|