etc/services - sync with NetBSD-8
[minix.git] / external / bsd / bind / dist / contrib / query-loc-0.4.0 / Makefile.in
blob726888eb6bf5e9943c0a294e0f3adf8a3338be9e
1 # Id: Makefile.in,v 1.1 2008/02/15 01:47:15 marka Exp
2 CC=@CC@
3 CFLAGS=@CFLAGS@
4 LIBS=@LIBS@
5 DESTDIR=@prefix@
6 BINDIR=@prefix@/bin
7 MANDIR=@prefix@/share/man/man1
8 DISTRIB= README INSTALL ALGO USAGE ADDRESSES Makefile.in configure configure.in config.h.in install-sh loc.h loc.c query-loc.c loc_ntoa.c query-loc.1 reconf
9 OBJS=query-loc.o loc.o @LOC_NTOA@
10 VERSION=`grep VERSION loc.h | cut -d ' ' -f 3 | sed s/\"//g`
12 all: query-loc
14 query-loc: $(OBJS)
15 $(CC) -o $@ $(OBJS) $(LIBS)
17 %.o: %.c loc.h
18 $(CC) $(CFLAGS) -c $<
20 clean:
21 rm -f *.o query-loc *~
23 distclean: clean
24 rm -f config.h config.cache config.log config.status Makefile
26 dist: distrib
28 distrib: clean
29 ./reconf
30 @(echo Query-Loc is version ${VERSION}; \
31 mkdir query-loc-${VERSION}; \
32 cp $(DISTRIB) query-loc-${VERSION};\
33 tar cvf query-loc-${VERSION}.tar query-loc-${VERSION}; \
34 rm -rf query-loc-${VERSION}; \
35 gzip -v -9 -f query-loc-${VERSION}.tar);
37 install:
38 @INSTALL@ -m 0755 query-loc $(BINDIR)
39 if [ ! -d $(MANDIR) ]; then \
40 mkdir $(MANDIR); \
42 @INSTALL@ -m 0644 query-loc.1 $(MANDIR)