Subversion Repositories svn.Prod repos

Rev

Rev 34 | 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).go
3
DIR=/var/tmp
34 - 4
.PHONY: clean test cleantest
27 - 5
 
33 - 6
$(PRG): $(SRC)
7
	go build $(SRC)
27 - 8
 
9
clean:
33 - 10
	rm -f $(PRG)
27 - 11
 
35 - 12
test:
33 - 13
	./$(PRG) $(DIR)	> result
14
	sort result	> result.sort
15
	find $(DIR)	> result2
16
	sort result2	> result2.sort
27 - 17
	wc *.sort
18
	diff *.sort
19
 
20
cleantest:
34 - 21
	rm -f result	result.sort
22
	rm -f result2	result2.sort