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