Subversion Repositories svn.Prod repos

Rev

Rev 33 | Rev 35 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 - 1
PRG=filefind
2
SRC=$(PRG).pas
34 - 3
DIR=/var/tmp
4
.PHONY: clean test cleantest
29 - 5
 
34 - 6
$(PRG): $(SRC)
33 - 7
	fpc $(SRC)
29 - 8
 
9
clean:
33 - 10
	rm -f $(PRG) $(PRG).o
29 - 11
 
33 - 12
test: $(PRG)
13
	./$(PRG) $(DIR)	> result
14
	sort result	> result.sort
15
	find $(DIR)	> result2
16
	sort result2	> result2.sort
29 - 17
	wc *.sort
18
	diff *.sort
19
 
20
cleantest:
33 - 21
	rm -f result	result.sort
22
	rm -f result2	result2.sort