Makefile revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/*
*/
{
echo 'static const char* exop[] = {'
echo ' "MINTOKEN",'
$(SED) -e '1,/MINTOKEN/d' -e '/MAXTOKEN/,$d' -e 's/^[ ]*//' -e 's/^#[ ]*define[ ]*//' -e 's/[= ].*//' -e 's/.*/ "&",/'
echo ' "MAXTOKEN",'
echo '};'
} < $(*) > $(<)
/*
*/
YACC.BOTCH.PATTERN = ',[0-9][0-9][0-9][0-9][0-9]*,'
do $(SED) -e '1i\
/* : : generated by a yacc that works -- solaris take note : : */' -e '/^[ ]*#[ ]*[il][di][en][ne][t]*[ ]["0-9].*/s,,/* & */,' -e '/^[ ]*#[ ]*include[ ]*"exlib\.h"/i\
#ifndef gettxt\
#define gettxt(h,t) (t)\
#endif' $i > O$i
done
fi
%.c %.h : %.y YACC.BOTCH.FIX