Subversion Repositories svn.Prod repos

Rev

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