Rev 33 | Rev 35 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | - | 1 | PRG=filefind |
2 | SRC=$(PRG).c |
||
3 | DIR=/var/tmp |
||
34 | - | 4 | .PHONY: clean test cleantest |
2 | ls | 5 | |
33 | - | 6 | $(PRG): checkfiles.h $(SRC) |
2 | ls | 7 | $(CC) $@.c -o $@ |
8 | |||
33 | - | 9 | clean: |
10 | rm -f $(PRG) |
||
2 | ls | 11 | |
34 | - | 12 | test: $(PRG) |
33 | - | 13 | ./$(PRG) $(DIR) > result |
14 | sort result > result.sort |
||
15 | find $(DIR) > result2 |
||
16 | sort result2 > result2.sort |
||
26 | - | 17 | wc *.sort |
18 | diff *.sort |
||
25 | - | 19 | |
33 | - | 20 | cleantest: |
21 | rm -f result result.sort |
||
22 | rm -f result2 result2.sort |