Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81030 / 1,2-rust2html / Makefile
diff options
context:
space:
mode:
Commit5729bc0ea96fc0b944c243230910c537d692bcad (patch)
Author
 Radoslav Georgiev <rgeorgiev583@gmail.com>
2018-11-17 19:11:03 +0200
Committer
 dtrendafilov <trendafilov.dn@gmail.com>
2018-11-17 19:11:02 +0200
Files43db75a7acf93c6c2c8e07c3a87590fe14fb4e4f /homework/81030/1,2-rust2html/Makefile
IPL-5729bc0ea96fc0b944c243230910c537d692bcad.tar
IPL-5729bc0ea96fc0b944c243230910c537d692bcad.tar.gz
IPL-5729bc0ea96fc0b944c243230910c537d692bcad.zip
Parent9420791a9335fc174627bea5f2a25f434bbe7ae5 (diff)
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
1 files changed, 21 insertions, 0 deletions
-rw-r--r--homework/81030/1,2-rust2html/Makefile21
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