Add force_ip_data rule to data Makefile

This commit is contained in:
Grégory Soutadé 2016-02-24 19:17:40 +01:00
parent ad33c94c6f
commit 0973b18da9

View File

@ -21,11 +21,14 @@ $(PROVIDERS):
@md5sum -c $@ || wget "ftp://ftp.ripe.net/pub/stats/$(basename $@)/delegated-$(basename $@)-extended-latest" -O $(basename $@) ; true
$(DEST): $(PROVIDERS)
@cat $(PROVIDERS) | grep -v asn | grep -v summary | grep -v '#' | grep ipv[46] | sort -n -k 4 -t '|' > $(DEST)
@cat $(PROVIDERS) | grep -v asn | grep -v summary | grep -v '#' | grep ipv[46] | grep -v reserved | sort -n -k 4 -t '|' > $(DEST)
$(IP_DATA): $(DEST)
@echo "Rebuild ip_data.c"
@./build_c_array.py > ../src/ip_data.c
force_ip_data:
@echo "Force rebuild ip_data.c"
@./build_c_array.py > ../src/ip_data.c
clean:
rm -f $(PROVIDERS) $(DEST) $(SHA1_FILE) $(MD5)