Subversion Repositories svn.Prod repos

Rev

Rev 36 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 - 1
PRG=filefind
2
SRC=$(PRG).c
3
DIR=/var/tmp
34 - 4
.PHONY: clean test cleantest
2 ls 5
 
38 - 6
all: test
7
 
33 - 8
$(PRG): checkfiles.h $(SRC)
36 - 9
	@echo "INFO: Building $@ from $^"
2 ls 10
	$(CC) $@.c -o $@
11
 
33 - 12
clean:
13
	rm -f $(PRG)
2 ls 14
 
36 - 15
test: $(PRG)
33 - 16
	./$(PRG) $(DIR)	> result
17
	sort result	> result.sort
18
	find $(DIR)	> result2
19
	sort result2	> result2.sort
26 - 20
	wc *.sort
21
	diff *.sort
25 - 22
 
33 - 23
cleantest:
24
	rm -f result	result.sort
25
	rm -f result2	result2.sort