forked from behdad/bicon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
49 lines (38 loc) · 1.4 KB
/
Makefile.am
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
## The order of subdirs is important, don't change without a reason.
SUBDIRS = bjoining bconsole bicon keymap font bin doc testtext
EXTRA_DIST = autogen.sh
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = @[email protected]
MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
$(srcdir)/INSTALL \
$(srcdir)/ChangeLog \
$(NULL)
# Indent all C source and header files, using indent(1):
indent: $(srcdir)/.indent.pro
cd "$(srcdir)" && \
find . -mindepth 2 -type f -name "*.[ch]" -print | \
xargs ./missing --run indent
.PHONY: indent
MAINTAINERCLEANFILES += ChangeLog
#
# ChangeLog generation
#
CHANGELOG_RANGE =
ChangeLog:
$(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
(GIT_DIR=$(top_srcdir)/.git $(top_srcdir)/missing --run \
git log $(CHANGELOG_RANGE) --stat) | fmt --split-only > [email protected] \
&& mv -f [email protected] "$(srcdir)/ChangeLog" \
|| ($(RM) [email protected]; \
echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
(test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
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 >> "$(srcdir)/$@"); \
fi
.PHONY: $(srcdir)/ChangeLog
-include $(top_srcdir)/git.mk