Skip to content
Snippets Groups Projects
Commit ca0be427 authored by Ralf Jung's avatar Ralf Jung
Browse files

awk.Makefile: Don't patch vio2vo; instead add quick2vo

parent 4ea9c34a
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -19,17 +19,16 @@ ...@@ -19,17 +19,16 @@
next next
} }
# Patch vio2vo to (a) run "make quick" with the same number of jobs, ensuring # Add new target quick2vo to (a) run "make quick" with the same number of jobs, ensuring
# that the .vio files are up-to-date, and (b) only schedule vio2vo for those # that the .vio files are up-to-date, and (b) only schedule vio2vo for those
# files where the .vo is *older* than the .vio. # files where the .vo is *older* than the .vio.
/^vio2vo:/ { /^vio2vo:/ {
print "vio2vo:"; print "quick2vo:";
print "\t@make -j $(J) quick" print "\t@make -j $(J) quick"
print "\t@VIOFILES=$$(for file in $(VOFILES:%.vo=%.vio); do vofile=\"$$(echo \"$$file\" | sed \"s/\\.vio/.vo/\")\"; if [ \"$$vofile\" -ot \"$$file\" -o ! -e \"$$vofile\" ]; then echo -n \"$$file \"; fi; done); \\" print "\t@VIOFILES=$$(for vofile in $(VOFILES); do viofile=\"$$(echo \"$$vofile\" | sed \"s/\\.vo/.vio/\")\"; if [ \"$$vofile\" -ot \"$$viofile\" -o ! -e \"$$vofile\" ]; then echo -n \"$$viofile \"; fi; done); \\"
print "\t echo \"VIO2VO: $$VIOFILES\"; \\" print "\t echo \"VIO2VO: $$VIOFILES\"; \\"
print "\t if [ -n \"$$VIOFILES\" ]; then $(COQC) $(COQDEBUG) $(COQFLAGS) -schedule-vio2vo $(J) $$VIOFILES; fi" print "\t if [ -n \"$$VIOFILES\" ]; then $(TIMER) $(COQC) $(COQDEBUG) $(COQFLAGS) -schedule-vio2vo $(J) $$VIOFILES; fi"
getline; print ".PHONY: quick2vo"
next
} }
# This forwards all unchanged lines # This forwards all unchanged lines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment