Subversion Repositories svn.Prod repos

Rev

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

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