No empty .Rs/.Re
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / postalias / Makefile.in
bloba10bdd1f71e5e99f021b0940ce9b49e3698fc756
1 SHELL = /bin/sh
2 SRCS = postalias.c
3 OBJS = postalias.o
4 HDRS =
5 TESTSRC =
6 DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE)
7 CFLAGS = $(DEBUG) $(OPT) $(DEFS)
8 TESTPROG=
9 PROG = postalias
10 INC_DIR = ../../include
11 LIBS = ../../lib/libglobal.a ../../lib/libutil.a
13 .c.o:; $(CC) $(CFLAGS) -c $*.c
15 $(PROG): $(OBJS) $(LIBS)
16 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
18 $(OBJS): ../../conf/makedefs.out
20 Makefile: Makefile.in
21 cat ../../conf/makedefs.out $? >$@
23 update: ../../bin/$(PROG)
25 tests: test1 test2
27 root_tests:
29 test1: $(PROG) map.in map-abc1.ref map-ghi1.ref map-uABC1.ref
30 ./$(PROG) map.in
31 for key in abc ghi; \
32 do \
33 ./$(PROG) -q $${key} map.in | diff map-$${key}1.ref -; \
34 done
35 ./$(PROG) -f map.in
36 for key in ABC; \
37 do \
38 ./$(PROG) -fq $${key} map.in | diff map-u$${key}1.ref -; \
39 done
40 rm -f map.in.db
42 test2: $(PROG) map.in map-abc2.ref map-ghi2.ref map-uABC2.ref
43 ./$(PROG) map.in
44 for key in abc ghi; \
45 do \
46 echo $${key} | ./$(PROG) -q - map.in | diff map-$${key}2.ref -; \
47 done
48 ./$(PROG) -f map.in
49 for key in ABC; \
50 do \
51 echo $${key} | ./$(PROG) -fq - map.in | diff map-u$${key}2.ref -; \
52 done
53 rm -f map.in.db
55 ../../bin/$(PROG): $(PROG)
56 cp $(PROG) ../../bin
58 printfck: $(OBJS) $(PROG)
59 rm -rf printfck
60 mkdir printfck
61 sed '1,/^# do not edit/!d' Makefile >printfck/Makefile
62 set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done
63 cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o`
65 lint:
66 lint $(DEFS) $(SRCS) $(LINTFIX)
68 clean:
69 rm -f *.o *core $(PROG) $(TESTPROG) junk
70 rm -rf printfck
72 tidy: clean
74 depend: $(MAKES)
75 (sed '1,/^# do not edit/!d' Makefile.in; \
76 set -e; for i in [a-z][a-z0-9]*.c; do \
77 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
78 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \
79 -e 's/o: \.\//o: /' -e p -e '}' ; \
80 done | sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in
81 @$(EXPORT) make -f Makefile.in Makefile 1>&2
83 # do not edit below this line - it is generated by 'make depend'
84 postalias.o: ../../include/argv.h
85 postalias.o: ../../include/dict.h
86 postalias.o: ../../include/dict_proxy.h
87 postalias.o: ../../include/mail_conf.h
88 postalias.o: ../../include/mail_dict.h
89 postalias.o: ../../include/mail_params.h
90 postalias.o: ../../include/mail_task.h
91 postalias.o: ../../include/mail_version.h
92 postalias.o: ../../include/mkmap.h
93 postalias.o: ../../include/msg.h
94 postalias.o: ../../include/msg_syslog.h
95 postalias.o: ../../include/msg_vstream.h
96 postalias.o: ../../include/mymalloc.h
97 postalias.o: ../../include/readlline.h
98 postalias.o: ../../include/resolve_clnt.h
99 postalias.o: ../../include/set_eugid.h
100 postalias.o: ../../include/split_at.h
101 postalias.o: ../../include/stringops.h
102 postalias.o: ../../include/sys_defs.h
103 postalias.o: ../../include/tok822.h
104 postalias.o: ../../include/vbuf.h
105 postalias.o: ../../include/vstream.h
106 postalias.o: ../../include/vstring.h
107 postalias.o: ../../include/vstring_vstream.h
108 postalias.o: postalias.c