File: Makefile

package info (click to toggle)
dealer 20161012-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,148 kB
  • sloc: ansic: 2,436; yacc: 630; perl: 400; makefile: 139; sh: 5
file content (33 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (4)
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
#
# Makefile to process all Descr.* files with dealer and write the output
# to Output.*.  make test executes the test, make clean cleans up.
# Depending on the CPU power that you have, these test may take up to
# 10 minutes to run.
#

DEALER = ../dealer

SHELL=/bin/sh

OUTPUT = $(wildcard Output.*)

test: examples distribution 

distribution:
	${DEALER} -s 1 <Test.distribution | ./convert.pl >Output.distribution	
	diff Output.distribution Refer.distribution

examples:
	./test_dealer.pl

refer:
	-for f in ${OUTPUT}; do \
		echo $$f; \
		f1=`echo $$f | sed s/Output/Refer/` ; \
		echo $$f1; \
		/bin/cp $$f $$f1; \
	done 


clean:
	-rm -f ${OUTPUT}