File: Makefile

package info (click to toggle)
gopher 3.0.3woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,796 kB
  • ctags: 2,008
  • sloc: ansic: 23,055; perl: 1,950; sh: 1,691; makefile: 457; asm: 1
file content (45 lines) | stat: -rw-r--r-- 1,403 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
include ../Makefile.config

GFILT = ../gophfilt/gophfilt -h localhost -s 9999 -p 

test-nonroot:
	@echo "Building test.conf file"
	@-rm -f test.conf
	@cat <test.raw >test.conf
	@echo "auxconf: /auxconf `pwd`/otheradmin.conf" >>test.conf
	@echo "Starting test gopher server on port 9999"
	../gopherd/gopherd -C -o test.conf -c `pwd`/data 9999
	@sleep 5

	-@rm -f ./results/root ./results/root-long \
		./results/links ./results/links-long
	$(GFILT) "" -t 1         >./results/root
	$(GFILT) "" -i '$$' -t 1 >./results/root-long
	$(GFILT) "" -i '!' -t 1  >./results/root-info

	$(GFILT) "1/links" -t 1         >./results/links
	$(GFILT) "1/links" -i '$$' -t 1 >./results/links-long
	$(GFILT) "1/links" -i '!' -t 1  >./results/links-info
	
	$(GFILT) "1/auxconf" -t 1         >./results/aux
	$(GFILT) "1/auxconf" -i '$$' -t 1 >./results/aux-long
	$(GFILT) "1/auxconf" -i '!' -t 1  >./results/aux-info

	$(GFILT) "1/views" -t 1         >./results/views
	$(GFILT) "1/views" -i '$$' -t 1 >./results/views-long
	$(GFILT) "1/views" -i '!' -t 1  >./results/views-info
	$(GFILT) "0/views/t-shirt" -t 0  >./results/views-txt

	$(GFILT) "0/decode-n-scripts/C-Programming" -t 0  >./results/views-txt
	$(GFILT) "m/cowmail" -t 1 >./results/mailfile
	$(GFILT) "m/fileseparator" -t 1 >./results/filesep	

all: test-nonroot
	@echo "Now type make diffs to find any differences"

	
diffs:
	-@diff -c good-results results