Project

General

Profile

« Previous | Next » 

Revision 404

input.Makefile: Fixed bug in verify's diff rule

View differences:

input.Makefile
1 1
selfDir_3d1bc249 := $(dir $(lastword $(MAKEFILE_LIST)))
2 2

  
3 3
# Make
4
+_ = $(+:_%=)
4 5
addBeforeExt = $(basename $(2))$(1)$(suffix $(2))
5 6

  
6 7
# Commands
7 8
CP = cp -p
8
copyTo = $(CP) $(+:_%=)
9
copyTo = $(CP) $(+_)
9 10
DIFF = diff --unified=2
10 11

  
11 12
table = $(shell s="$(*F)"; echo "$${s\#\#*.}")# remove sort order prefix
......
69 70
verify: _always $(addprefix verify-,$(tables))
70 71

  
71 72
verify-%: verify.%.ref verify.%.out _always
72
	$(DIFF)
73
	$(DIFF) $(+_)
73 74

  
74 75
%.out: %.sql _always
75 76
	$(psqlAsBien) --no-align --field-separator='	' --pset=footer=off <$< >$@

Also available in: Unified diff