Subversion Repositories svn.Prod repos

Rev

Rev 27 | Rev 34 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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