Subversion Repositories eFlore/Applications.del

Rev

Rev 1444 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

celdb = tb_cel_test
deldb = tb_del_test

# helper
do_subst = sed -e "1i--\n-- fichier d'origine: \"${1}\"\n" \
                   -e 's/`BASECEL`/`$(celdb)`/g' \
                   -e 's/`BASEDEL`/`$(deldb)`/g' \
                   $(1)

# default target
help:
        @echo "make o_maj1 [celdb=<$(celdb)>] [deldb=<$(deldb)>]"

clean:
        rm -f *.comp.sql

# maj1 contient: 201309-index-views.sql
o_maj1: fichiers_generes = $(addsuffix .comp.sql,$(filter-out clean,$?))
o_maj1: clean o_201309-index-views
        cat $(fichiers_generes) > maj1.comp.sql

# SHOW INDEX FROM cel_obs WHERE Key_name = 'transmission';
# SHOW INDEX FROM cel_obs WHERE Key_name = 'date_transmission';
o_201309-index-views:
        $(call do_subst,201309-index-views.sql) > $@.comp.sql