forked from libstatgrab/libstatgrab
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
68 lines (53 loc) · 1.46 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
59
60
61
62
63
64
65
66
67
68
# Makefile for libstatgrab
# https://libstatgrab.org/
AUTOMAKE_OPTIONS = gnu
ACLOCAL_AMFLAGS = -I m4
DOCS_SUBDIR = docs
if TESTS
TESTS_SUBDIR = tests
endif
SUBDIRS = src examples $(DOCS_SUBDIR) $(TESTS_SUBDIR)
test:
if TEST_SCRIPTS
cd tests && $(MAKE) test
else
@echo Not built
endif
check: test
EXTRA_DIST = libstatgrab.pc.in statgrab.properties.in saidar.properties.in
MAINTAINERCLEANFILES = ChangeLog
if MAINTAINER_MODE
ChangeLog:
git log --stat --name-only --date=short \
--format='%n*%ad %an <%ae>%n%n%w(76,4,4)%s%n%n%b%n#Hash: %H%n#Files affected:' \
| $(SED) \
-e 's/^\([^ \*]\)/ \1/' \
-e 's/^ \#/ /' \
-e 's/ Hash/ Hash/' \
-e 's/^\*//' \
| tail -n +2 > ChangeLog
endif
dist_doc_DATA = NEWS PLATFORMS README AUTHORS COPYING COPYING.LGPL
if WITH_LIBLOG4CPLUS
sysconf_DATA = statgrab.properties saidar.properties
prop_edit= -e 's|@localstatedir[@]|$(localstatedir)|g'
prop_edit_cmd= $(SED) $(prop_edit)
statgrab.properties: Makefile $(srcdir)/statgrab.properties.in
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(prop_edit_cmd) $${srcdir}$@.in >$@.tmp
chmod +r $@.tmp
chmod a-wx $@.tmp
mv $@.tmp $@
saidar.properties: Makefile $(srcdir)/saidar.properties.in
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(prop_edit_cmd) $${srcdir}$@.in >$@.tmp
chmod +r $@.tmp
chmod a-wx $@.tmp
mv $@.tmp $@
endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libstatgrab.pc