Add force_ip_data rule to data Makefile
This commit is contained in:
parent
ad33c94c6f
commit
0973b18da9
|
@ -21,11 +21,14 @@ $(PROVIDERS):
|
||||||
@md5sum -c $@ || wget "ftp://ftp.ripe.net/pub/stats/$(basename $@)/delegated-$(basename $@)-extended-latest" -O $(basename $@) ; true
|
@md5sum -c $@ || wget "ftp://ftp.ripe.net/pub/stats/$(basename $@)/delegated-$(basename $@)-extended-latest" -O $(basename $@) ; true
|
||||||
|
|
||||||
$(DEST): $(PROVIDERS)
|
$(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)
|
$(IP_DATA): $(DEST)
|
||||||
@echo "Rebuild ip_data.c"
|
@echo "Rebuild ip_data.c"
|
||||||
@./build_c_array.py > ../src/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:
|
clean:
|
||||||
rm -f $(PROVIDERS) $(DEST) $(SHA1_FILE) $(MD5)
|
rm -f $(PROVIDERS) $(DEST) $(SHA1_FILE) $(MD5)
|
Loading…
Reference in New Issue
Block a user