File: Makefile

package info (click to toggle)
pcb-rnd 3.1.7b-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,108 kB
  • sloc: ansic: 213,400; yacc: 6,241; sh: 4,698; awk: 3,016; makefile: 2,254; lex: 1,166; python: 519; xml: 261; lisp: 154; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (39 lines) | stat: -rw-r--r-- 1,068 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
ROOT=../..
include $(ROOT)/Makefile.conf

SRC=$(ROOT)/src
TDIR=../tests/query
GFLT=$(TDIR)/../pupfilter.sh
PCBRND=./pcb-rnd
GLOBARGS=-c rc/library_search_paths=../tests/RTT/lib -c rc/quiet=1

TESTS = \
	action.diff getconf.diff getconf2.diff

test: $(TESTS)

all:

action.diff: action.out
	@diff -u action.ref action.out && rm action.out

action.out: FORCE
	@cd $(SRC) && echo 'query(eval, "action(\"message\", \"hello\", @.x)")' | $(PCBRND) $(GLOBARGS) $(TDIR)/1obj.lht --gui batch | $(GFLT) > $(TDIR)/action.out

getconf.diff: getconf.out
	@diff -u getconf.ref getconf.out && rm getconf.out

getconf.out: FORCE
	@cd $(SRC) && echo 'query(eval, "@ thus getconf(\"editor/grid_unit\")")' | $(PCBRND) $(GLOBARGS) $(TDIR)/1obj.lht --gui batch | $(GFLT) > $(TDIR)/getconf.out

getconf2.diff: getconf2.out
	@diff -u getconf2.ref getconf2.out && rm getconf2.out

getconf2.out: FORCE
	@cd $(SRC) && echo 'query(eval, "@ thus $$min_drill")' | $(PCBRND) $(GLOBARGS) $(TDIR)/1obj.lht --gui batch | $(GFLT) > $(TDIR)/getconf2.out

clean:
	@echo "a" > dummy.out
	rm *.out

FORCE: