From 5729bc0ea96fc0b944c243230910c537d692bcad Mon Sep 17 00:00:00 2001 From: Radoslav Georgiev Date: Sat, 17 Nov 2018 19:11:03 +0200 Subject: implement the second homework assignment (#39) * Rust syntax highlighter: fix some issues with the implementation of the first homework assignment * Rust syntax highlighter: pretty-printer: implement the second homework assignment --- homework/81030/1,2-rust2html/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 homework/81030/1,2-rust2html/Makefile (limited to 'homework/81030/1,2-rust2html/Makefile') diff --git a/homework/81030/1,2-rust2html/Makefile b/homework/81030/1,2-rust2html/Makefile new file mode 100644 index 0000000..b6f2dde --- /dev/null +++ b/homework/81030/1,2-rust2html/Makefile @@ -0,0 +1,21 @@ +PROGRAM_NAMES := rust2html rust2html-prettyprint +PROGRAM_SOURCE_FILENAMES := $(patsubst %,%.lex.yy.c,PROGRAM_NAMES) + +LEX := flex + +ifdef DEBUG +LEX_FLAGS := -d +endif + +.PHONY: all clean + +all: $(PROGRAM_NAMES) + +%: %.lex.yy.c + $(CC) $(CFLAGS) -o $@ $< + +%.lex.yy.c: %.l + $(LEX) $(LEX_FLAGS) -o $@ $< + +clean: + $(RM) $(PROGRAM_NAMES) $(PROGRAM_SOURCE_FILENAMES) lex.yy.c example.html -- cgit v1.3.1-26-gb76a