Subversion Repositories svn.Prod repos

Rev

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

Rev 26 Rev 33
Line -... Line 1...
-
 
1
PRG=filefind
-
 
2
SRC=$(PRG).c
-
 
3
DIR=/var/tmp
1
 
4
 
2
filefind: checkfiles.h filefind.c
5
$(PRG): checkfiles.h $(SRC)
3
	$(CC) $@.c -o $@
6
	$(CC) $@.c -o $@
4
 
7
 
5
test: filefind
-
 
6
	./filefind /home/arikkert > result
-
 
7
	sort result > result.sort
-
 
8
	find /home/arikkert > result2
-
 
9
	sort result2 > result2.sort
-
 
10
	wc *.sort
8
clean:
11
	diff *.sort
9
	rm -f $(PRG)
12
 
10
 
13
test2:
11
test: $(SRC)
14
	./filefind /var/tmp > result
12
	./$(PRG) $(DIR)	> result
15
	sort result > result.sort
13
	sort result	> result.sort
16
	find /var/tmp > result2
14
	find $(DIR)	> result2
17
	sort result2 > result2.sort
15
	sort result2	> result2.sort
18
	wc *.sort
16
	wc *.sort
19
	diff *.sort
17
	diff *.sort
20
 
18
 
21
clean:
19
cleantest:
22
	rm -f filefind
-
 
23
	rm -rf result result.sort
20
	rm -f result	result.sort
24
	rm -rf result2 result2.sort
21
	rm -f result2	result2.sort