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