Subversion Repositories svn.Prod repos

Rev

Rev 34 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

PROGRAM=filefind
SOURCE=$(PROGRAM).pas

$(PROGRAM):
        fpc $(SOURCE)

run: $(PROGRAM)
        ./$(PROGRAM) .

clean:
        rm -f $(PROGRAM) $(PROGRAM).o

DIR = /var/tmp

test: $(PROGRAM)
        ./$(PROGRAM) $(DIR) > result
        sort result         > result.sort
        find $(DIR)         > result2
        sort result2        > result2.sort
        wc *.sort
        diff *.sort

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