forked from CESNET/ipfixcol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
30 lines (23 loc) · 741 Bytes
/
Copy pathMakefile.am
File metadata and controls
30 lines (23 loc) · 741 Bytes
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
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = tools fbitdump.xml.template
pkgdata_DATA = fbitdump.xml
rpmspec = $(PACKAGE_TARNAME).spec
RPMDIR = RPMBUILD
SUBDIRS = 3rdparty src src/plugins
if HAVE_DOC
SUBDIRS += man \
doc
endif
.PHONY: doc
doc:
(cd doc && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1
.PHONY: rpm
rpm: dist $(rpmspec)
@mkdir -p $(RPMDIR)/BUILD $(RPMDIR)/RPMS $(RPMDIR)/SOURCES $(RPMDIR)/SPECS $(RPMDIR)/SRPMS;
mv $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz $(RPMDIR)/SOURCES/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-$(RELEASE).tar.gz
$(RPMBUILD) -ba $(rpmspec) \
--define "_topdir `pwd`/$(RPMDIR)";
clean-local:
rm -rf RPMBUILD fbitdump.xml
fbitdump.xml: fbitdump.xml.template
sed 's|@pkgdatadir[@]|$(pkgdatadir)|g' $< > $@