Subversion Repositories svn.Prod repos

Rev

Rev 36 | 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
 
38 - 6
all: test
7
 
34 - 8
$(PRG): $(SRC)
36 - 9
	@echo "Building $@ from $^"
33 - 10
	fpc $(SRC)
29 - 11
 
12
clean:
33 - 13
	rm -f $(PRG) $(PRG).o
29 - 14
 
36 - 15
test: $(PRG)
33 - 16
	./$(PRG) $(DIR)	> result
17
	sort result	> result.sort
18
	find $(DIR)	> result2
19
	sort result2	> result2.sort
29 - 20
	wc *.sort
21
	diff *.sort
22
 
23
cleantest:
33 - 24
	rm -f result	result.sort
25
	rm -f result2	result2.sort