File: Makefile.am

package info (click to toggle)
log4c 1.2.4-2
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 2,808 kB
  • sloc: sh: 11,246; ansic: 8,645; makefile: 680; lex: 134; cpp: 6
file content (39 lines) | stat: -rw-r--r-- 876 bytes parent folder | download
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