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

EXTRA_DIST = \
  README README-dev DESIGN LICENSE.txt NOTICE.txt README.rhel3 \
  etc/qpidd \
  $(PACKAGE).spec \
  $(PACKAGE).spec.in

SUBDIRS = gen lib src docs/api docs/man rpm tests

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

# This cannot be done by AC_CONFIG_FILES, because automake's
# make distcheck target does not like auto-generated files
# being included in the distributed archive.
qpidc.spec: %: %.in
	sed 's/@''PACKAGE@/@PACKAGE@/;s/@''VERSION@/@VERSION@/' $< > $@-tmp
	mv $@-tmp $@
MAINTAINERCLEANFILES = $(PACKAGE).spec

.PHONY: rpm srpm
rpm srpm:
	cd rpm && $(MAKE) $(MAKEFLAGS_AM) $@