Subversion Repositories svn.Prod repos

Rev

Rev 35 | Rev 38 | 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).c
2
SRC=$(PRG).c
3
DIR=/var/tmp
3
DIR=/var/tmp
4
.PHONY: clean test cleantest
4
.PHONY: clean test cleantest
5
 
5
 
6
$(PRG): checkfiles.h $(SRC)
6
$(PRG): checkfiles.h $(SRC)
-
 
7
	@echo "INFO: Building $@ from $^"
7
	$(CC) $@.c -o $@
8
	$(CC) $@.c -o $@
8
 
9
 
9
clean:
10
clean:
10
	rm -f $(PRG)
11
	rm -f $(PRG)
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