Rev 26 | Rev 34 | 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 |
||
2 | ls | 4 | |
33 | - | 5 | $(PRG): checkfiles.h $(SRC) |
2 | ls | 6 | $(CC) $@.c -o $@ |
7 | |||
33 | - | 8 | clean: |
9 | rm -f $(PRG) |
||
2 | ls | 10 | |
33 | - | 11 | test: $(SRC) |
12 | ./$(PRG) $(DIR) > result |
||
13 | sort result > result.sort |
||
14 | find $(DIR) > result2 |
||
15 | sort result2 > result2.sort |
||
26 | - | 16 | wc *.sort |
17 | diff *.sort |
||
25 | - | 18 | |
33 | - | 19 | cleantest: |
20 | rm -f result result.sort |
||
21 | rm -f result2 result2.sort |