Rev 6 | Rev 34 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6 | Rev 33 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | - | ||
2 | # http://users.erols.com/ziring/java-src/FileWalk.java |
1 | # http://users.erols.com/ziring/java-src/FileWalk.java |
3 | 2 | ||
4 | PROG = filefind |
3 | BASE=filefind |
- | 4 | PRG=$(BASE).class |
|
- | 5 | SRC=$(BASE).java |
|
- | 6 | DIR=/var/tmp |
|
5 | 7 | ||
6 | include Makefile.inc |
8 | $(PRG): $(SRC) |
- | 9 | @echo "INFO: building $@ from $^" |
|
- | 10 | javac $^ |
|
7 | 11 | ||
- | 12 | clean: |
|
8 | DIR = /home/arikkert |
13 | rm -f $(PRG) |
9 | 14 | ||
10 | test: $(PROG).class |
15 | test: $(PRG) |
11 | java $(PROG) $(DIR) > result |
16 | java $(BASE) $(DIR) > result |
12 | sort result > result.sort |
17 | sort result > result.sort |
13 | find $(DIR) > result2 |
18 | find $(DIR) > result2 |
14 | sort result2 > result2.sort |
19 | sort result2 > result2.sort |
15 | wc *.sort |
20 | wc *.sort |
16 | diff *.sort |
21 | diff *.sort |
17 | 22 | ||
18 | clean2: |
23 | cleantest: |
19 | rm -f filefind |
- | |
20 | rm -rf result result.sort |
24 | rm -f result result.sort |
21 | rm -rf result2 result2.sort |
25 | rm -f result2 result2.sort |