Rev 33 | Rev 35 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6 | ls | 1 | # http://users.erols.com/ziring/java-src/FileWalk.java |
2 | |||
33 | - | 3 | BASE=filefind |
4 | PRG=$(BASE).class |
||
5 | SRC=$(BASE).java |
||
6 | DIR=/var/tmp |
||
34 | - | 7 | .PHONY: clean test cleantest |
6 | ls | 8 | |
33 | - | 9 | $(PRG): $(SRC) |
10 | @echo "INFO: building $@ from $^" |
||
11 | javac $^ |
||
6 | ls | 12 | |
33 | - | 13 | clean: |
14 | rm -f $(PRG) |
||
6 | ls | 15 | |
33 | - | 16 | test: $(PRG) |
17 | java $(BASE) $(DIR) > result |
||
18 | sort result > result.sort |
||
19 | find $(DIR) > result2 |
||
20 | sort result2 > result2.sort |
||
6 | ls | 21 | wc *.sort |
22 | diff *.sort |
||
23 | |||
33 | - | 24 | cleantest: |
25 | rm -f result result.sort |
||
26 | rm -f result2 result2.sort |