Subversion Repositories svn.Prod repos

Rev

Rev 36 | Blame | Compare with Previous | Last modification | View Log | RSS feed

# http://users.erols.com/ziring/java-src/FileWalk.java

BASE=filefind
PRG=$(BASE).class
SRC=$(BASE).java
DIR=/var/tmp
.PHONY: clean test cleantest

all: test

$(PRG): $(SRC)
        @echo "INFO: building $@ from $^"
        javac $^

clean:
        rm -f $(PRG)

test: $(PRG)
        java $(BASE) $(DIR)     > result
        sort result             > result.sort
        find $(DIR)             > result2
        sort result2            > result2.sort
        wc *.sort
        diff *.sort

cleantest:
        rm -f result    result.sort
        rm -f result2   result2.sort