Subversion Repositories svn.Prod repos

Rev

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