Subversion Repositories svn.Prod repos

Rev

Rev 33 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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