-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
39 lines (29 loc) · 876 Bytes
/
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
ACLOCAL_AMFLAGS=-I config
if DOC
DOC_SUBDIR = doc
endif
if TEST
TEST_SUBDIR = tests
endif
SUBDIRS = config src ${DOC_SUBDIR} ${TEST_SUBDIR} examples
DIST_SUBDIRS = config src doc tests examples
EXTRA_DIST = \
log4c.m4 \
log4c.spec.in \
log4c.spec
bin_SCRIPTS = log4c-config
BUILT_SOURCES=log4c-config
m4datadir = $(datadir)/aclocal
m4data_DATA = log4c.m4
sysconf_DATA = log4crc.sample
dist_man_MANS = log4c-config.1
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = log4c.pc
rpm: dist
mkdir -p $(distdir)/rpmbuild/{BUILD,RPMS,SOURCES,SRPMS,SPECS}
mkdir $(distdir)/rpmbuild/RPMS/i386
# remove the "--clean" here to leave the rpmbuild intermediate file
# for debugging the rpm generation
# The _topdir seems to have to be absolute
rpmbuild -ta --clean --define='_topdir $(CURDIR)/$(distdir)/rpmbuild' ${distdir}.tar.gz
#rpmbuild --clean -ta ${distdir}.tar.gz