<commit_before>
all: 

.PHONY: pkg-deb-system-prep
pkg-deb-system-prep:
	apt-get install devscripts debhelper apache2-dev

.PHONY: pkg-deb
pkg-deb:
	debuild -us -uc


APP_NAME=mod_cloudflare
VERSION=1.0

.PHONY: pkg-rpm-system-prep
pkg-rpm-system-prep:
	yum install -y rpm-build httpd-devel

.PHONY: pkg-rpm-suse-system-prep
pkg-rpm-suse-system-prep:
	zypper install -y rpm-build apache2-devel

.PHONY:pkg-rpm-prep
pkg-rpm-prep:
	mkdir -p ./rpm/RPMS/i386
	mkdir -p ./rpm/SRPMS
	mkdir -p ./rpm/BUILD
	mkdir -p ./rpm/SOURCES
	cp -f ../mod_cloudflare.c ./rpm/SOURCES/
	mkdir -p ./rpm/tmp
	- rm -fr ./rpm/BUILD/$(APP_NAME)-root
	- rm -fr ./rpm/RPMS/$(APP_NAME)-*
	- rm -fr ./rpm/SRPMS/$(APP_NAME)-*
	- rm -fr ./rpm/SOURCES/$(APP_NAME)-*

pkg-rpm: pkg-rpm-prep
	rpmbuild --define="_topdir `pwd`/rpm" -ba ./rpm/mod_cloudflare.spec

pkg-rpm-suse: pkg-rpm-prep
	rpmbuild --define="_topdir `pwd`/rpm" -ba ./rpm/mod_cloudflare.suse.spec<commit_msg>Added source archive builder to packaging makefile<commit_after>
all: 

.PHONY: pkg-deb-system-prep
pkg-deb-system-prep:
	apt-get install devscripts debhelper apache2-dev

.PHONY: pkg-deb
pkg-deb:
	debuild -us -uc


APP_NAME=mod_cloudflare
VERSION=1.0

.PHONY: pkg-rpm-system-prep
pkg-rpm-system-prep:
	yum install -y rpm-build httpd-devel

.PHONY: pkg-rpm-suse-system-prep
pkg-rpm-suse-system-prep:
	zypper install -y rpm-build apache2-devel

.PHONY:pkg-rpm-prep
pkg-rpm-prep:
	mkdir -p ./rpm/RPMS/i386
	mkdir -p ./rpm/SRPMS
	mkdir -p ./rpm/BUILD
	mkdir -p ./rpm/SOURCES
	cp -f ../mod_cloudflare.c ./rpm/SOURCES/
	mkdir -p ./rpm/tmp
	- rm -fr ./rpm/BUILD/$(APP_NAME)-root
	- rm -fr ./rpm/RPMS/$(APP_NAME)-*
	- rm -fr ./rpm/SRPMS/$(APP_NAME)-*
	- rm -fr ./rpm/SOURCES/$(APP_NAME)-*

pkg-rpm: pkg-rpm-prep
	rpmbuild --define="_topdir `pwd`/rpm" -ba ./rpm/mod_cloudflare.spec

pkg-rpm-suse: pkg-rpm-prep
	rpmbuild --define="_topdir `pwd`/rpm" -ba ./rpm/mod_cloudflare.suse.spec

.PHONY: archive-src
archive-src:
	git archive --prefix=mod_cloudflare/ --format=tar HEAD `pwd`/../ -o  mod_cloudflare.`git log -n1 --pretty='%h' HEAD`.src.tar
{'fraction_non_alphanumeric': 0.17607332368547998, 'fraction_numerical': 0.00723589001447178, 'mean_word_length': 3.05078125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4695233', 'n_tokens_mistral': 1042, 'n_tokens_neox': 894, 'n_words': 182}