Project

General

Profile

« Previous | Next » 

Revision 7281

input.Makefile: Import to VegBIEN: Moved import, rm to top of section since they are top-level targets and don't depend on the variables defined for %/import

View differences:

input.Makefile
358 358

  
359 359
##### Import to VegBIEN
360 360

  
361
import: $(importTables:%=%/import) _always ;
362

  
363
rm: _always
364
	echo "DELETE FROM source WHERE shortname = '$(datasrc)';"\
365
|"time" $(psqlAsBien)
366

  
361 367
profileTest = $(if $(profile),$(if $(test),1))
362 368
profileOnly = -env profile_to=/dev/fd/3 $(map2db) 3>&1 1>&2|\
363 369
$(bin)/profile_stats /dev/fd/0
......
376 382

  
377 383
import? = $(if $(call and,$(full_import),$(call dontImport,.)),,$(import))
378 384

  
379
import: $(importTables:%=%/import) _always ;
380

  
381
rm: _always
382
	echo "DELETE FROM source WHERE shortname = '$(datasrc)';"\
383
|"time" $(psqlAsBien)
384

  
385 385
%/import: %/VegBIEN.csv _always
386 386
	$(import?)
387 387
# default:

Also available in: Unified diff