Subversion Repositories svn.Prod repos

Rev

Rev 35 | Rev 38 | 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
 
33 - 6
$(PRG): checkfiles.h $(SRC)
36 - 7
	@echo "INFO: Building $@ from $^"
2 ls 8
	$(CC) $@.c -o $@
9
 
33 - 10
clean:
11
	rm -f $(PRG)
2 ls 12
 
36 - 13
test: $(PRG)
33 - 14
	./$(PRG) $(DIR)	> result
15
	sort result	> result.sort
16
	find $(DIR)	> result2
17
	sort result2	> result2.sort
26 - 18
	wc *.sort
19
	diff *.sort
25 - 20
 
33 - 21
cleantest:
22
	rm -f result	result.sort
23
	rm -f result2	result2.sort