Skip to content
Snippets Groups Projects
Commit 58c51065 authored by zhaochaoyi's avatar zhaochaoyi
Browse files

Fri Feb 25 02:01:53 PM CST 2022

parent cd77790b
No related branches found
No related tags found
No related merge requests found
......@@ -30,13 +30,26 @@ syntax-c: $(YFILE)
$(BISON) -o $(YFC) -d -v $(YFILE)
YYCFILE = $(shell find ./ -name *.yy.c)
ifeq ($(file),all)
TESTFILE = $(shell find ../Test/ -name "*.cmm")
else
ifeq ($(file),)
file = 1
endif
TESTFILE = ../Test/test$(file).cmm
endif
scanner: lexical
$(CC) $(YYCFILE) -lfl -I. -o scanner
./scanner ../Test/test1.cmm
@echo -e \\n==============================\\n
@./scanner $(TESTFILE)
@echo -e \\n==============================\\n
@echo Scanner Test:$(notdir $(TESTFILE))
-include $(patsubst %.o, %.d, $(OBJS))
-include $(patsubst %.o, %.d, $(OBJS))
# 定义的一些伪目标
.PHONY: clean test
test:
......
#! /bin/zsh
git fetch
git pull origin
git add .
git commit -am "$*"
git commit -am $(date)
git push origin main
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