Subversion Repositories svn.Prod repos

Rev

Rev 29 | Rev 34 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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