Subversion Repositories svn.Prod repos

Rev

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

Rev 35 Rev 36
Line 2... Line 2...
2
SRC=$(PRG).pas
2
SRC=$(PRG).pas
3
DIR=/var/tmp
3
DIR=/var/tmp
4
.PHONY: clean test cleantest
4
.PHONY: clean test cleantest
5
 
5
 
6
$(PRG): $(SRC)
6
$(PRG): $(SRC)
-
 
7
	@echo "Building $@ from $^"
7
	fpc $(SRC)
8
	fpc $(SRC)
8
 
9
 
9
clean:
10
clean:
10
	rm -f $(PRG) $(PRG).o
11
	rm -f $(PRG) $(PRG).o
11
 
12
 
12
test:
13
test: $(PRG)
13
	./$(PRG) $(DIR)	> result
14
	./$(PRG) $(DIR)	> result
14
	sort result	> result.sort
15
	sort result	> result.sort
15
	find $(DIR)	> result2
16
	find $(DIR)	> result2
16
	sort result2	> result2.sort
17
	sort result2	> result2.sort
17
	wc *.sort
18
	wc *.sort