+SHELL := bash
NAME := scanner
all: $(NAME)
.PHONY: clean
clean:
- rm -f $(NAME).o $(NAME) $(NAME).c
+ rm -f $(NAME){,.o,.c}
-1test: $(NAME)
- @echo "execute cat test/1test | ./$(NAME)"
- @cat test/1test | ./$(NAME) > tmp1
- @echo "execute cat test/2test | ./$(NAME)"
- @cat test/2test | ./$(NAME) > tmp2
- -@diff tmp{1,2}
- @rm tmp{1,2}
+1test: 2test
2test:
/usr/ftp/pub/ublu/test/$(NAME)/test 2>&1