<commit_before>ifndef CONFFILE
CONFFILE=/usr/local/etc/GeoIP.conf
endif

ifndef DATADIR
DATADIR=/usr/local/share/GeoIP
endif

all: \
	build/geoipupdate \
	build/CHANGELOG.md \
	build/LICENSE-APACHE \
	build/LICENSE-MIT \
	build/README.md \
	build/GeoIP.conf \
	build/doc/GeoIP.conf.md \
	build/doc/geoipupdate.md

build:
	mkdir -p build

build/geoipupdate: build
	(cd cmd/geoipupdate && go build -ldflags '-X main.defaultConfigFile=$(CONFFILE) -X main.defaultDatabaseDirectory=$(DATADIR)')
	cp cmd/geoipupdate/geoipupdate build

build/CHANGELOG.md: build CHANGELOG.md
	cp CHANGELOG.md build

build/LICENSE-APACHE: build LICENSE-APACHE
	cp LICENSE-APACHE build

build/LICENSE-MIT: build LICENSE-MIT
	cp LICENSE-MIT build

build/README.md: build README.md
	cp README.md build

build/GeoIP.conf: build conf/GeoIP.conf.default
	sed -e 's|CONFFILE|$(CONFFILE)|g' -e 's|DATADIR|$(DATADIR)|g' conf/GeoIP.conf.default > build/GeoIP.conf

build/doc:
	mkdir -p build/doc

build/doc/GeoIP.conf.md: build/doc doc/GeoIP.conf.md
	sed -e 's|CONFFILE|$(CONFFILE)|g' -e 's|DATADIR|$(DATADIR)|g' doc/GeoIP.conf.md > build/doc/GeoIP.conf.md

build/doc/geoipupdate.md: build/doc doc/geoipupdate.md
	sed -e 's|CONFFILE|$(CONFFILE)|g' -e 's|DATADIR|$(DATADIR)|g' doc/geoipupdate.md > build/doc/geoipupdate.md

clean:
	rm -rf build<commit_msg>Include only dynamic files in Makefile<commit_after>ifndef CONFFILE
CONFFILE=/usr/local/etc/GeoIP.conf
endif

ifndef DATADIR
DATADIR=/usr/local/share/GeoIP
endif

all: \
	build/geoipupdate \
	build/GeoIP.conf \
	build/GeoIP.conf.md \
	build/geoipupdate.md

build:
	mkdir -p build

build/geoipupdate: build
	(cd cmd/geoipupdate && go build -ldflags '-X main.defaultConfigFile=$(CONFFILE) -X main.defaultDatabaseDirectory=$(DATADIR)')
	cp cmd/geoipupdate/geoipupdate build

build/GeoIP.conf: build conf/GeoIP.conf.default
	sed -e 's|CONFFILE|$(CONFFILE)|g' -e 's|DATADIR|$(DATADIR)|g' conf/GeoIP.conf.default > build/GeoIP.conf

build/GeoIP.conf.md: build doc/GeoIP.conf.md
	sed -e 's|CONFFILE|$(CONFFILE)|g' -e 's|DATADIR|$(DATADIR)|g' doc/GeoIP.conf.md > build/GeoIP.conf.md

build/geoipupdate.md: build doc/geoipupdate.md
	sed -e 's|CONFFILE|$(CONFFILE)|g' -e 's|DATADIR|$(DATADIR)|g' doc/geoipupdate.md > build/geoipupdate.md

clean:
	rm -rf build
{'fraction_non_alphanumeric': 0.14720141031291317, 'fraction_numerical': 0.0, 'mean_word_length': 4.49636803874092, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1098215', 'n_tokens_mistral': 958, 'n_tokens_neox': 956, 'n_words': 166}