Subversion Repositories svn.Prod repos

Rev

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

Rev 33 Rev 34
Line 1... Line 1...
1
PRG=filefind
1
PRG=filefind
2
SRC=$(PRG).c
2
SRC=$(PRG).c
3
DIR=/var/tmp
3
DIR=/var/tmp
-
 
4
.PHONY: clean test cleantest
4
 
5
 
5
$(PRG): checkfiles.h $(SRC)
6
$(PRG): checkfiles.h $(SRC)
6
	$(CC) $@.c -o $@
7
	$(CC) $@.c -o $@
7
 
8
 
8
clean:
9
clean:
9
	rm -f $(PRG)
10
	rm -f $(PRG)
10
 
11
 
11
test: $(SRC)
12
test: $(PRG)
12
	./$(PRG) $(DIR)	> result
13
	./$(PRG) $(DIR)	> result
13
	sort result	> result.sort
14
	sort result	> result.sort
14
	find $(DIR)	> result2
15
	find $(DIR)	> result2
15
	sort result2	> result2.sort
16
	sort result2	> result2.sort
16
	wc *.sort
17
	wc *.sort