Subversion Repositories svn.Prod repos

Rev

Rev 33 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27 - 1
PROGRAM=filefind
2
SOURCE=$(PROGRAM).go
3
 
4
$(PROGRAM): $(SOURCE)
5
	go build $(SOURCE)
6
 
7
run: $(PROGRAM)
8
	./$(PROGRAM) .
9
 
10
clean:
11
	rm $(PROGRAM)
12
 
13
DIR = /var/tmp
14
 
15
test: $(SOURCE)
16
	./$(PROGRAM) $(DIR) > result
17
	sort result         > result.sort
18
	find $(DIR)         > result2
19
	sort result2        > result2.sort
20
	wc *.sort
21
	diff *.sort
22
 
23
cleantest:
24
	rm result result.sort result2 result2.sort