FLAVOR = CC = gcc CFLAGS = -g $(FLAVOR) LEX = flex .PHONY: all workaround C_PLUSPLUS ANSI_C HAS_NAME all: c++2latex C_PLUSPLUS: make c++2latex FLAVOR=-DC_PLUSPLUS ANSI_C: make c2latex FLAVOR=-DANSI_C USE_NAME: make c++2latex FLAVOR=-DUSE_NAME workaround: c++2latex.l mv -f c++2latex.l c++2latex.full sed > c++2latex.l -e '/^###/w c++2latex.copyright' \ -e '/^###/d' c++2latex.full c2latex.c: c++2latex.c mv c++2latex.c c2latex.c c++2latex: c++2latex.o getopt1.o getopt.o version.o c2latex: c2latex.o getopt1.o getopt.o version.o