1 # $Id: Makefile.in,v 1.5 2007/07/03 18:49:46 joerg Exp $
7 PACKAGE_NAME
= @PACKAGE_NAME@
8 PACKAGE_VERSION
= @PACKAGE_VERSION@
13 exec_prefix = @
exec_prefix@
20 AUTOHEADER
= @AUTOHEADER@
21 mkinstalldirs
= $(SHELL
) $(srcdir)/mkinstalldirs
22 install_sh
= $(SHELL
) $(srcdir)/install-sh
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@
32 CANONICAL_HOST
= @CANONICAL_HOST@
38 DEFS
= @DEFS@
-I.
-I@
srcdir@
-DHOST
=\"$(CANONICAL_HOST
)\" -DVERSION
=\"$(PACKAGE_VERSION
)\"
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 \
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
57 $(COMPILE
) -c
$< -o
$@
61 digest
: $(digest_OBJS
)
62 $(LINK
) $(digest_OBJS
) $(LIBS
)
65 @SHELL@
$(srcdir)/regress.sh
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
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
88 @f
=`echo digest|sed '$(transform)'`; \
89 echo
" rm -f $(DESTDIR)$(bindir)/$$f"; \
90 rm -f
$(DESTDIR
)$(bindir)/$$f
94 distdir
= $(PACKAGE_NAME
)-$(PACKAGE_VERSION
)
97 -chmod
-R a
+w
$(distdir
) >/dev
/null
2>&1; rm -rf
$(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"; \
105 if
test -d
$$d/$$file; then \
106 cp
-pR
$$d/$$file $(distdir
) \
109 test -f
$(distdir
)/$$file \
110 || cp
-p
$$d/$$file $(distdir
)/$$file \
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
)
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
)
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
131 dc_install_base
=`CDPATH=: && cd $(distdir)/=inst && pwd` \
132 && cd
$(distdir
)/=build \
133 && ..
/configure
--srcdir=..
--prefix=$$dc_install_base \
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; \
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; \
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'