Subversion Repositories svn.Prod repos

Rev

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