Subversion Repositories svn.Prod repos

Rev

Rev 36 | 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
 
38 - 6
all: test
7
 
33 - 8
$(PRG): $(SRC)
36 - 9
	@echo "INFO: Building $@ from $^"
33 - 10
	go build $(SRC)
27 - 11
 
12
clean:
33 - 13
	rm -f $(PRG)
27 - 14
 
36 - 15
test: $(PRG)
33 - 16
	./$(PRG) $(DIR)	> result
17
	sort result	> result.sort
18
	find $(DIR)	> result2
19
	sort result2	> result2.sort
27 - 20
	wc *.sort
21
	diff *.sort
22
 
23
cleantest:
34 - 24
	rm -f result	result.sort
25
	rm -f result2	result2.sort