fix: adjust makefile

This commit is contained in:
dancingCycle 2023-05-09 11:14:47 +02:00
parent a8d4eef9b6
commit 14506d6498
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ load: $(addprefix load-,$(TABLES))
@$(psql) -t -A -c "SELECT FORMAT('* loaded %s', feed_file) WHERE feed_file = '$(GTFS)';"
copy: $(ZHV)
$(psql) -c "\copy zhv.stops(stop_seq_no,stop_type,stop_dhid,stop_parent,stop_name,stop_lat,stop_lon,stop_municipality_code,stop_municipality,stop_district_code,stop_district,stop_condition,stop_state,stop_description,stop_authority,stop_delfi_name,stop_tariff_dhid,stop_tariff_name) FROM '$<' DELIMITER ',' CSV HEADER;"
$(psql) -c "\copy zhv.stops(stop_seq_no,stop_type,stop_dhid,stop_parent,stop_name,stop_lat,stop_lon,stop_municipality_code,stop_municipality,stop_district_code,stop_district,stop_condition,stop_state,stop_description,stop_authority,stop_delfi_name,stop_tariff_dhid,stop_tariff_name) FROM '$<' DELIMITER ';' CSV HEADER;"
# -v: variable assignment, like the /set meta-command
# $<: name of the firest prerequisite