How can I rewrite the programs, so that I don't have to call `flex` but only call `bison` and `cc`?
问题 I already have a calculator program based on bison and flex which takes input from command line arguments. Now how can I rewrite the programs, so that I don't have to call flex but only call bison and cc during building process? (Achieve something similar to https://unix.stackexchange.com/questions/499190/where-is-the-official-documentation-debian-package-iproute-doc#comment919875_499225). $ ./fb1-5 '1+3' = 4 Makefile: fb1-5: fb1-5.l fb1-5.y bison -d fb1-5.y flex fb1-5.l cc -o $@ fb1-5.tab.c