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