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