summaryrefslogtreecommitdiff
path: root/qpid/cpp/Makefile.am
blob: 42fc47ba5fe3a92d8efe74af384b858e4d27668a (plain)
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
AUTOMAKE_OPTIONS = 1.9.2 foreign
ACLOCAL_AMFLAGS = -I m4

SPEC=$(PACKAGE).spec

EXTRA_DIST = \
  LICENSE NOTICE README RELEASE_NOTES\
  etc/qpidd etc/qpidd.conf \
  $(SPEC) $(SPEC).in \
  rpm/README.qpidd-devel \
  xml/cluster.xml

sysconf_DATA = etc/qpidd.conf

SUBDIRS = src docs/api docs/man examples 

# Update libtool, if needed.
libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status --recheck

#
# Build RPMs from the distribution tarball.
#
RPMDIRS=rpm/BUILD  rpm/RPMS rpm/SPECS rpm/SRPMS
RPMMACROS=--define "_topdir @abs_builddir@/rpm" --define "_sourcedir @abs_builddir@"
# Override this variable e.g. with -bs to produce srpm only
RPMOPTS=-ba

clean-local:
	-rm -rf $(RPMDIRS)

.PHONY: rpmbuild

rpmbuild: $(SPEC) dist-gzip
	mkdir -p $(RPMDIRS)
	rpmbuild $(RPMMACROS) $(RPMOPTS) $(SPEC)
if HAS_RPMLINT
	rpmlint `find rpm -name '*.rpm'`
else
	@echo "WARNING: rpmlint not found, could not validate RPMs."
endif