Tomas Cejka | 50c076e | 2014-03-18 15:31:10 +0100 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | |
| 3 | |
| 4 | SUBDIRS=src |
Tomas Cejka | f02a984 | 2014-03-20 15:54:56 +0100 | [diff] [blame^] | 5 | if MANUAL_CONFD |
| 6 | SUBDIRS+=conf.d |
| 7 | endif |
Tomas Cejka | 50c076e | 2014-03-18 15:31:10 +0100 | [diff] [blame] | 8 | |
| 9 | RPMDIR = RPMBUILD |
| 10 | |
| 11 | dist-hook: |
| 12 | find "$(distdir)" -name .gitignore -exec rm {} \; |
| 13 | |
| 14 | if MAKE_RPMS |
| 15 | |
| 16 | RPMFILENAME=$(PACKAGE_NAME)-$(VERSION) |
| 17 | .PHONY: rpm |
| 18 | rpm: |
| 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 | |
| 27 | rpm-clean: |
| 28 | rm -rf $(RPMDIR) |
| 29 | else |
| 30 | endif |