mirror of https://github.com/ecmwf/eccodes.git
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
.grib.c:; ./grib2c.pl $<
|
|
# .req.grib:; mars $<
|
|
|
|
grib_errors.c : grib_errors.txt errors.pl
|
|
./errors.pl
|
|
cmp grib_errors.c grib_errors.c.new || (cp grib_errors.c.new grib_errors.c)
|
|
cmp grib_api.h grib_api.h.new || (cp grib_api.h.new grib_api.h)
|
|
cmp ../fortran/grib_api_constants.h grib_api_constants.h.new || (cp grib_api_constants.h.new ../fortran/grib_api_constants.h)
|
|
cmp ../python/grib_errors.h grib_errors.h.new || (cp grib_errors.h.new ../python/grib_errors.h)
|
|
|
|
|
|
proto:;-chmod +w grib_api_prototypes.h; mkptypes -A $(libeccodes_la_prototypes) $(libeccodes_extra_prototypes) > temp && mv temp grib_api_prototypes.h;rm -f temp
|
|
|
|
test:all;(cd ../tests; make tests)
|
|
|
|
templates:
|
|
-chmod +w grib_templates.h
|
|
./grib2c.pl ../templates/*.grib
|
|
|
|
grib_lex.c : gribl.l grib_yacc.h
|
|
$(LEX) gribl.l
|
|
sed 's/yy/grib_yy/g' < $(LEX_OUTPUT_ROOT).c | sed 's/static void grib_yyunput/void grib_yyunput/' > grib_lex1.c
|
|
sed 's/fgetc/getc/g' < grib_lex1.c > grib_lex.c
|
|
rm -f grib_lex1.c
|
|
rm -f $(LEX_OUTPUT_ROOT).c
|
|
|
|
grib_yacc.h grib_yacc.c : griby.y
|
|
$(YACC) -d griby.y
|
|
sed 's/yy/grib_yy/g' < y.tab.c > grib_yacc1.c
|
|
sed 's/fgetc/getc/g' < grib_yacc1.c > grib_yacc.c
|
|
rm -f grib_yacc1.c
|
|
sed 's/yy/grib_yy/g' < y.tab.h > grib_yacc.h
|
|
rm -f y.tab.c y.tab.h
|
|
|
|
hash_keys:
|
|
./make_hash_keys.ksh
|
|
|
|
grib_accessor_classes_hash.c:
|
|
./make_accessor_class_hash.ksh
|
|
|
|
SUFFIXES= .conf .grib .req .txt
|