
PSQL=/usr/local/pgsql/bin/psql
# psql
#/usr/local/pgsql/bin/psql
PGHOST=linux10

# 
all: video.html
	cp -f $< ../

video.html: head.html tabella tail.html
	cat $^ > $@


#format=-P format=html -P tuples_only

format=-P tuples_only
DB=maruska

# -t significa senza l'interstazione delle colonne
# -t              mostra solo le righe (-P tuples_only)le
#
tabella: query.sql
	$(PSQL) -h $(PGHOST) $(format) -q -f $^  $(DB)> $@


.PHONY: tabella
#.force:	tabella








