ossp-pkg/shtool/Makefile.in 1.49 -> 1.50
--- Makefile.in 2004/01/01 16:54:20 1.49
+++ Makefile.in 2004/02/12 16:06:26 1.50
@@ -61,29 +61,28 @@
sh.version \
sh.path
-all: shtool shtool.1 shtoolize.1
+all: shtool manpages
shtool: $(SCRIPTS) sh.common shtoolize
- @$(SHELL) sh.echo -e "%BBuilding shtool program:%b"
+ @$(SHELL) sh.echo -e "%Bbuilding program shtool%b"
./shtoolize -o shtool all
-shtool.1: shtool.pod
- @$(SHELL) sh.echo -e "%BBuilding shtool.1 manual page:%b"
- V1=`$(SHELL) sh.version -l txt -d short VERSION`; \
+manpages: .timestamp
+.timestamp: shtoolize.pod shtool.pod $(SCRIPTS)
+ -@V1=`$(SHELL) sh.version -l txt -d short VERSION`; \
V2=`$(SHELL) sh.version -l txt -d long VERSION`; \
D=`$(SHELL) sh.version -l txt -d long VERSION | sed -e 's;.*(;;' -e 's;).*;;'`; \
- $(POD2MAN) --section=1 --center="GNU Portable Shell Tool" \
- --release="$$D" --date="shtool $$V1" shtool.pod |\
- sed -e "s;SHTOOL_VERSION_STR;$$V2;" >shtool.1
-
-shtoolize.1: shtoolize.pod
- @$(SHELL) sh.echo -e "%BBuilding shtoolize.1 manual page:%b"
- V1=`$(SHELL) sh.version -l txt -d short VERSION`; \
- V2=`$(SHELL) sh.version -l txt -d long VERSION`; \
- D=`$(SHELL) sh.version -l txt -d long VERSION | sed -e 's;.*(;;' -e 's;).*;;'`; \
- $(POD2MAN) --section=1 --center="GNU Portable Shell Tool" \
- --release="$$D" --date="shtool $$V1" shtoolize.pod |\
- sed -e "s;SHTOOL_VERSION_STR;$$V2;" >shtoolize.1
+ for ifile in shtoolize.pod shtool.pod $(SCRIPTS); do \
+ tfile=`echo "$$ifile" | sed -e 's/\.pod$$/.tmp/' -e 's/^sh\.\(.*\)$$/shtool-\1.tmp/'`; \
+ ofile=`echo "$$ifile" | sed -e 's/\.pod$$/.1/' -e 's/^sh\.\(.*\)$$/shtool-\1.1/'`; \
+ cp $$ifile $$tfile; \
+ $(SHELL) sh.echo -e "%Bbuilding manpage $$ofile%b"; \
+ $(POD2MAN) --section=1 --center="GNU Portable Shell Tool" \
+ --release="$$D" --date="shtool $$V1" $$tfile |\
+ sed -e "s;SHTOOL_VERSION_STR;$$V2;" >$$ofile; \
+ rm -f $$tfile; \
+ done; \
+ touch .timestamp
check: test
test: all
@@ -98,8 +97,11 @@
./shtool mkdir -f -p -m 755 $(DESTDIR)$(pkgdatadir)
./shtool install -c -m 755 shtool $(DESTDIR)$(bindir)/shtool
./shtool install -c -m 755 shtoolize $(DESTDIR)$(bindir)/shtoolize
- ./shtool install -c -m 644 shtool.1 $(DESTDIR)$(mandir)/man1/shtool.1
- ./shtool install -c -m 644 shtoolize.1 $(DESTDIR)$(mandir)/man1/shtoolize.1
+ -@for ifile in shtoolize.pod shtool.pod $(SCRIPTS); do \
+ ofile=`echo "$$ifile" | sed -e 's/\.pod$$/.1/' -e 's/^sh\.\(.*\)$$/shtool-\1.1/'`; \
+ echo "./shtool install -c -m 644 $$ofile $(DESTDIR)$(mandir)/man1/$$ofile"; \
+ ./shtool install -c -m 644 $$ofile $(DESTDIR)$(mandir)/man1/$$ofile; \
+ done
./shtool install -c -m 644 shtool.m4 $(DESTDIR)$(aclocaldir)/shtool.m4
@for script in sh.common $(SCRIPTS); do \
echo "./shtool install -c -m 644 $$script $(DESTDIR)$(pkgdatadir)/$$script"; \
@@ -112,8 +114,11 @@
$(RM) $(DESTDIR)$(pkgdatadir)/$$script; \
done
$(RM) $(DESTDIR)$(aclocaldir)/shtool.m4
- $(RM) $(DESTDIR)$(mandir)/man1/shtoolize.1
- $(RM) $(DESTDIR)$(mandir)/man1/shtool.1
+ -@for ifile in shtoolize.pod shtool.pod $(SCRIPTS); do \
+ ofile=`echo "$$ifile" | sed -e 's/\.pod$$/.1/' -e 's/^sh\.\(.*\)$$/shtool-\1.1/'`; \
+ echo "$(RM) $(DESTDIR)$(mandir)/man1/$$ofile"; \
+ $(RM) $(DESTDIR)$(mandir)/man1/$$ofile; \
+ done
$(RM) $(DESTDIR)$(bindir)/shtoolize
$(RM) $(DESTDIR)$(bindir)/shtool
$(RMDIR) $(DESTDIR)$(aclocaldir) >/dev/null 2>&1 || $(TRUE)
@@ -125,9 +130,11 @@
$(RMDIR) $(DESTDIR)$(prefix) >/dev/null 2>&1 || $(TRUE)
clean:
- $(RM) shtool shtool.1 shtoolize.1
+ $(RM) shtool
+ $(RM) *.1
distclean: clean
$(RM) Makefile shtoolize
$(RM) config.cache config.status config.log
+ $(RM) .timestamp
|
|