Rev 36 | 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 | |
38 | - | 9 | all: test |
10 | |||
33 | - | 11 | $(PRG): $(SRC) |
12 | @echo "INFO: building $@ from $^" |
||
13 | javac $^ |
||
6 | ls | 14 | |
33 | - | 15 | clean: |
16 | rm -f $(PRG) |
||
6 | ls | 17 | |
36 | - | 18 | test: $(PRG) |
33 | - | 19 | java $(BASE) $(DIR) > result |
20 | sort result > result.sort |
||
21 | find $(DIR) > result2 |
||
22 | sort result2 > result2.sort |
||
6 | ls | 23 | wc *.sort |
24 | diff *.sort |
||
25 | |||
33 | - | 26 | cleantest: |
27 | rm -f result result.sort |
||
28 | rm -f result2 result2.sort |