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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
##
## wml_include/Makefile
## Copyright (c) 1997 Ralf S. Engelschall, All Rights Reserved.
##
# ------------------------------------------------
# DEFINITIONS
# ------------------------------------------------
@SET_MAKE@
SHELL = /bin/sh
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
PATH_PERL = @PATH_PERL@
INSTALL_PROGRAM = install -c -m 755 -s
INSTALL_DATA = install -c -m 644
MKDIR = mkdir -p -m 755
prefix = @prefix@
exec_prefix = $(prefix)
bindir = $(prefix)/bin
libsubdir = @libsubdir@
libdir = $(prefix)/lib$(libsubdir)
datadir = $(prefix)/share$(libsubdir)
mandir = $(prefix)/man
INSTALLPRIVLIB = @INSTALLPRIVLIB@
INSTALLARCHLIB = @INSTALLARCHLIB@
DCOLON = @DCOLON@
# ------------------------------------------------
# TARGETS
# ------------------------------------------------
all: sys/bootp3.src
@set -e; \
files=`echo [a-z]*.src [a-z]*/*.src`; \
for file in $$files; do \
base=`echo $$file | sed -e 's/\.src$$//g'`; \
name=`echo wml/$$base | sed -e 's/\//$(DCOLON)/g'`; \
if ls -1t $$base.wml $$base.src 2>/dev/null \
| sed 1q | grep "^$$base.wml\$$" >/dev/null 2>&1; then \
:; \
else \
echo "Creating $$name"; \
sed -e '/^=head1/,/^=cut/d' -e '/^__END__/,$$d' \
<$$base.src >$$base.wml; \
cp $$base.src $$name.pod; \
pod2man --section=3 \
--center="EN Tools" \
--release="EN Tools" \
$$name.pod >$$base.3; \
rm -f $$name.pod; \
fi; \
done
sys/bootp3.src: sys/bootp3.src.in
sed -e 's|\@INSTALLPRIVLIB\@|$(INSTALLPRIVLIB)|g' \
-e 's|\@INSTALLARCHLIB\@|$(INSTALLARCHLIB)|g' \
<$? >$@
install:
@set -e; \
files=`echo [a-z]*.wml [a-z]*/*.wml`; \
for file in $$files; do \
base=`echo $$file | sed -e 's/\.wml$$//g'`; \
dir=`echo $$file | sed -e 's/[a-zA-Z0-9_]*.wml$$//g'`; \
name=`echo wml/$$base | sed -e 's/\//$(DCOLON)/g'`; \
if [ ! -d "$(datadir)/include/$$dir" ]; then \
echo "$(MKDIR) $(datadir)/include/$$dir"; \
$(MKDIR) $(datadir)/include/$$dir; \
else :; \
fi; \
echo "$(INSTALL_DATA) $$file $(datadir)/include/$$file"; \
$(INSTALL_DATA) $$file $(datadir)/include/$$file; \
echo "$(INSTALL_DATA) $$base.3 $(mandir)/man3/$$name.3"; \
$(INSTALL_DATA) $$base.3 $(mandir)/man3/$$name.3; \
done
clean:
-rm -f *.wml */*.wml
-rm -f *.3 */*.3
-rm -f sys/bootp3.src
distclean: clean
-rm -f Makefile
realclean: distclean
##EOF##
|