Remove lex rules from Makefile

Since the RGBLINK rewrite, there have been no .l files in the whole codebase
(RGBASM has the C file directly, for better and for worse)
Since flex isn't used anymore, it's a good idea to remove it from the Makefile
so people don't think it's a dependency.
This commit is contained in:
ISSOtm
2019-12-03 23:02:38 +01:00
parent 5410dba4f4
commit 92a2be62fe

View File

@@ -7,7 +7,7 @@
# #
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .h .l .y .c .o .SUFFIXES: .h .y .c .o
# User-defined variables # User-defined variables
@@ -43,10 +43,8 @@ LDFLAGS :=
REALLDFLAGS := ${LDFLAGS} ${WARNFLAGS} REALLDFLAGS := ${LDFLAGS} ${WARNFLAGS}
YFLAGS := YFLAGS :=
LFLAGS := --nounistd
YACC := yacc YACC := yacc
LEX := flex
RM := rm -rf RM := rm -rf
# Rules to build the RGBDS binaries # Rules to build the RGBDS binaries
@@ -116,20 +114,16 @@ rgbgfx: ${rgbgfx_obj}
# Rules to process files # Rules to process files
# We want the yacc and lex invocations to pass through our rules # We want the yacc invocations to pass through our rules, not default ones
.y.o: .y.o:
.l.o:
# yacc- and lex-generated C files have an accompanying header # yacc-generated C files have an accompanying header
.c.h: .c.h:
$Qtouch $@ $Qtouch $@
.y.c: .y.c:
$Q${YACC} -d ${YFLAGS} -o $@ $< $Q${YACC} -d ${YFLAGS} -o $@ $<
.l.c:
$Q${LEX} ${LFLAGS} -o $@ $<
.c.o: .c.o:
$Q${CC} ${REALCFLAGS} ${PNGCFLAGS} -c -o $@ $< $Q${CC} ${REALCFLAGS} ${PNGCFLAGS} -c -o $@ $<
@@ -173,8 +167,8 @@ install: all
$Qinstall -m ${MANMODE} src/link/rgblink.5 ${DESTDIR}${mandir}/man5/rgblink.5 $Qinstall -m ${MANMODE} src/link/rgblink.5 ${DESTDIR}${mandir}/man5/rgblink.5
$Qinstall -m ${MANMODE} src/gfx/rgbgfx.1 ${DESTDIR}${mandir}/man1/rgbgfx.1 $Qinstall -m ${MANMODE} src/gfx/rgbgfx.1 ${DESTDIR}${mandir}/man1/rgbgfx.1
# Target used to check the coding style of the whole codebase. '.y' and '.l' # Target used to check the coding style of the whole codebase.
# files aren't checked, unfortunately... # `.y` files aren't checked, unfortunately...
checkcodebase: checkcodebase:
$Qfor file in `git ls-files | grep -E '\.c|\.h' | grep -v '\.html'`; do \ $Qfor file in `git ls-files | grep -E '\.c|\.h' | grep -v '\.html'`; do \
@@ -183,8 +177,8 @@ checkcodebase:
# Target used to check the coding style of the patches from the upstream branch # Target used to check the coding style of the patches from the upstream branch
# to the HEAD. Runs checkpatch once for each commit between the current HEAD and # to the HEAD. Runs checkpatch once for each commit between the current HEAD and
# the first common commit between the HEAD and origin/master. '.y' and '.l' # the first common commit between the HEAD and origin/master.
# files aren't checked, unfortunately... # `.y` files aren't checked, unfortunately...
checkpatch: checkpatch:
$Qeval COMMON_COMMIT=$$(git merge-base HEAD origin/master); \ $Qeval COMMON_COMMIT=$$(git merge-base HEAD origin/master); \