-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.am
59 lines (47 loc) · 1.51 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
50
51
52
53
54
55
56
57
58
DISTCHECK_CONFIGURE_FLAGS = \
--enable-more-warnings=error \
CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
ACLOCAL_AMFLAGS = -I m4
################################################################################
DISTCLEANFILES = ChangeLog
doc_DATA = ChangeLog
# Build changelog from git history
.PHONY: ChangeLog
ChangeLog:
$(AM_V_GEN)if test -d $(top_srcdir)/.git; then \
prev=$$(git describe --tags --always --match '[0-9]*' 2> /dev/null) ; \
for tag in $$(git log --decorate=full --simplify-by-decoration --pretty=oneline HEAD | sed -r -e 's#^[^\(]*\(([^\)]*)\).*$$#\1#' -e 's#,#\n#g' | grep 'tag:' | sed -r -e 's#[[:space:]]*tag:[[:space:]]*##'); do \
if [ x"$$prev" = x ]; then prev=$$tag ; fi ; \
if [ x"$$prev" = x"$$tag" ]; then continue; fi ; \
echo "$$prev [$$(git log $$prev -1 --pretty=format:'%ai')]:" ; \
echo "" ; \
git log --pretty=' - [%h] %s' $$tag..$$prev ; \
echo "" ; \
prev=$$tag ; \
done > $@ ; \
else \
touch $@ ; \
fi
EXTRA_DIST = README
################################################################################
bin_PROGRAMS = mv88e6xxx_dump
mv88e6xxx_dump_SOURCES = \
libnetlink.h \
mnlg.h \
prettymsg.h \
utils.h \
desc-devlink.c \
desc-genlctrl.c \
libnetlink.c \
mnlg.c \
prettymsg.c \
mv88e6xxx_dump.c \
$(NULL)
mv88e6xxx_dump_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
$(LIBMNL_CFLAGS) \
$(NULL)
mv88e6xxx_dump_LDFLAGS = \
$(LIBMNL_LIBS) \
$(NULL)