blob: d3a643a2007a67f1c057879d492975044d4748ed [file] [log] [blame]
Tomas Cejka50c076e2014-03-18 15:31:10 +01001ACLOCAL_AMFLAGS = -I m4
2
3
4SUBDIRS=src
Tomas Cejka834004f2014-04-27 20:13:39 +02005DIST_SUBDIRS=src conf.d
6
Tomas Cejkaf02a9842014-03-20 15:54:56 +01007if MANUAL_CONFD
8SUBDIRS+=conf.d
9endif
Tomas Cejka50c076e2014-03-18 15:31:10 +010010
11RPMDIR = RPMBUILD
12
13dist-hook:
14 find "$(distdir)" -name .gitignore -exec rm {} \;
15
16if MAKE_RPMS
17
18RPMFILENAME=$(PACKAGE_NAME)-$(VERSION)
19.PHONY: rpm
20rpm:
21 rm -rf "$(RPMDIR)/SOURCES/$(RPMFILENAME)"
22 mkdir -p $(RPMDIR)/BUILD/ $(RPMDIR)/SRPMS/ $(RPMDIR)/RPMS/ $(RPMDIR)/SOURCES
23 make ${AM_MAKEFLAGS} distdir='$(RPMDIR)/SOURCES/$(RPMFILENAME)' distdir
Tomas Cejka50c076e2014-03-18 15:31:10 +010024 find "$(RPMDIR)" -name '*.back' -exec rm -f {} \;
25 ( cd "$(RPMDIR)/SOURCES/"; tar -z -c -f $(RPMFILENAME)-$(RELEASE).tar.gz $(RPMFILENAME); rm -rf $(RPMFILENAME); )
26 $(RPMBUILD) -ba $(PACKAGE_NAME).spec --define "_topdir `pwd`/$(RPMDIR)";
27
28rpm-clean:
29 rm -rf $(RPMDIR)
30else
31endif