Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / pkgtools / digest / files / Makefile.in
blobead952221cd3ce45e15a898ded6186ddbf97d64f
1 # $Id: Makefile.in,v 1.5 2007/07/03 18:49:46 joerg Exp $
3 @SET_MAKE@
4 SHELL = @SHELL@
5 VPATH=@srcdir@
7 PACKAGE_NAME= @PACKAGE_NAME@
8 PACKAGE_VERSION= @PACKAGE_VERSION@
10 srcdir = @srcdir@
11 VPATH = @srcdir@
12 prefix = @prefix@
13 exec_prefix = @exec_prefix@
15 bindir = @bindir@
16 mandir = @mandir@
17 top_builddir = .
19 AUTOCONF = @AUTOCONF@
20 AUTOHEADER = @AUTOHEADER@
21 mkinstalldirs = $(SHELL) $(srcdir)/mkinstalldirs
22 install_sh = $(SHELL) $(srcdir)/install-sh
24 INSTALL = @INSTALL@
25 INSTALL_PROGRAM = @INSTALL_PROGRAM@
26 INSTALL_DATA = @INSTALL_DATA@
27 INSTALL_SCRIPT = @INSTALL_SCRIPT@
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = @program_transform_name@
30 host_alias = @host_alias@
31 host_triplet = @host@
32 CANONICAL_HOST = @CANONICAL_HOST@
34 CC = @CC@
35 CCLD= $(CC)
36 LIBS= @LIBS@
37 CPPFLAGS= @CPPFLAGS@
38 DEFS= @DEFS@ -I. -I@srcdir@ -DHOST=\"$(CANONICAL_HOST)\" -DVERSION=\"$(PACKAGE_VERSION)\"
39 CFLAGS= @CFLAGS@
40 LDFLAGS= @LDFLAGS@
42 LINK= $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
43 COMPILE= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS)
45 digest_OBJS = digest.o md5c.o rmd160.o rmd160hl.o sha2.o sha2hl.o \
46 md5hl.o sha1.o sha1hl.o tiger.o whirlpool.o
48 SRCS= digest.c md5c.c rmd160.c rmd160hl.c sha2.c sha2hl.c md5hl.c sha1.c \
49 sha1hl.c md5.h rmd160.h sha1.h sha2.h tiger.c tiger.h whirlpool.c \
50 whirlpool.h
52 DISTFILES= $(SRCS) AUTHORS COPYING DESCR INSTALL Makefile.in NEWS aclocal.m4 \
53 config.guess config.h.in config.sub configure configure.ac install-sh \
54 missing mkinstalldirs regress.sh
56 .c.o:
57 $(COMPILE) -c $< -o $@
59 all: digest
61 digest: $(digest_OBJS)
62 $(LINK) $(digest_OBJS) $(LIBS)
64 check: digest
65 @SHELL@ $(srcdir)/regress.sh
67 clean:
68 rm -f *.o digest
70 distclean: clean
71 rm -f Makefile config.h
72 rm -f config.status config.cache config.log
74 maintainer-clean: distclean
75 rm -f configure config.h.in
77 install: digest
78 $(mkinstalldirs) $(DESTDIR)$(bindir)
79 @f=`echo digest|sed '$(transform)'`; \
80 echo "$(INSTALL_PROGRAM) digest $(DESTDIR)$(bindir)/$$f"; \
81 $(INSTALL_PROGRAM) digest $(DESTDIR)$(bindir)/$$f
82 $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
83 @f=`echo digest.1|sed '$(transform)'`; \
84 echo "$(INSTALL_DATA) digest.1 $(DESTDIR)$(mandir)/man1/$$f"; \
85 $(INSTALL_DATA) digest.1 $(DESTDIR)$(mandir)/man1/$$f
87 uninstall:
88 @f=`echo digest|sed '$(transform)'`; \
89 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
90 rm -f $(DESTDIR)$(bindir)/$$f
92 GZIP_ENV= --best
93 TAR= tar
94 distdir= $(PACKAGE_NAME)-$(PACKAGE_VERSION)
96 distdir: $(DISTFILES)
97 -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
98 mkdir $(distdir)
99 @for file in $(DISTFILES); do \
100 if test -f $$file; then d=.; else d=$(srcdir); fi; \
101 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
102 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
103 $(mkinstalldirs) "$(distdir)/$$dir"; \
104 fi; \
105 if test -d $$d/$$file; then \
106 cp -pR $$d/$$file $(distdir) \
107 || exit 1; \
108 else \
109 test -f $(distdir)/$$file \
110 || cp -p $$d/$$file $(distdir)/$$file \
111 || exit 1; \
112 fi; \
113 done
114 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
115 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
116 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
117 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
118 || chmod -R a+r $(distdir)
120 dist: distdir
121 $(TAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
122 -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
124 distcheck: dist
125 -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
126 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(TAR) xf -
127 chmod -R a-w $(distdir); chmod a+w $(distdir)
128 mkdir $(distdir)/=build
129 mkdir $(distdir)/=inst
130 chmod a-w $(distdir)
131 dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
132 && cd $(distdir)/=build \
133 && ../configure --srcdir=.. --prefix=$$dc_install_base \
134 && $(MAKE) \
135 && $(MAKE) check \
136 && $(MAKE) install \
137 && $(MAKE) uninstall \
138 && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
139 || (echo "Error: files left after uninstall" 1>&2; \
140 exit 1) ) \
141 && $(MAKE) dist \
142 && $(MAKE) distclean \
143 && rm -f $(distdir).tar.gz \
144 && (test `find . -type f -print | wc -l` -eq 0 \
145 || (echo "Error: files left after distclean" 1>&2; \
146 exit 1) )
147 -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
148 @echo "$(distdir).tar.gz is ready for distribution" | \
149 sed 'h;s/./=/g;p;x;p;x'