OSSP CVS Repository

ossp - Difference in ossp-pkg/ex/Makefile.in versions 1.1 and 1.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/ex/Makefile.in 1.1 -> 1.2

--- Makefile.in  2002/01/26 20:12:19     1.1
+++ Makefile.in  2002/01/31 20:48:05     1.2
@@ -45,6 +45,7 @@
 SHTOOL      = ./shtool
 LIBTOOL     = ./libtool
 TRUE        = true
+POD2MAN     = pod2man
 
 LIB_NAME    = libex.la
 LIB_OBJS    = ex.lo
@@ -70,6 +71,15 @@
 $(TST_NAME): $(TST_OBJS) $(LIB_NAME)
         @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(TST_NAME) $(TST_OBJS) $(LIB_NAME) $(LIBS)
 
+ex.3: ex.pod
+        V1=`$(SHTOOL) version -l txt -d short VERSION`; \
+        V2=`$(SHTOOL) version -l txt -d long VERSION`; \
+        D=`$(SHTOOL) version -l txt -d long VERSION | sed -e 's;.*(;;' -e 's;).*;;'`; \
+        $(POD2MAN) --quotes=none \
+                   --section=3 --center="Exception Handling" \
+                   --release="$$D" --date="OSSP ex $$V1" ex.pod | \
+        sed -e "s;EX_VERSION_STR;$$V2;" >ex.3
+
 check: $(TST_NAME)
         @$(LIBTOOL) --mode=execute ./$(TST_NAME)
 
@@ -78,14 +88,18 @@
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir)
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)
         $(SHTOOL) install -c -m 755 ex-config $(DESTDIR)$(bindir)/
         $(SHTOOL) install -c -m 644 ex.h $(DESTDIR)$(includedir)/
         @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libex.la $(DESTDIR)$(libdir)/
+        $(SHTOOL) install -c -m 644 ex.3 $(DESTDIR)$(mandir)/man3/
 
 uninstall:
+        -$(RM) $(DESTDIR)$(mandir)/man3/ex.3
         @$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libex.la
         -$(RM) $(DESTDIR)$(includedir)/ex.h
         -$(RM) $(DESTDIR)$(bindir)/ex-config
+        -$(RMDIR) $(DESTDIR)$(mandir) >/dev/null 2>&1 || $(TRUE)
         -$(RMDIR) $(DESTDIR)$(libdir) >/dev/null 2>&1 || $(TRUE)
         -$(RMDIR) $(DESTDIR)$(includedir) >/dev/null 2>&1 || $(TRUE)
         -$(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE)
@@ -103,6 +117,7 @@
         -$(RM) libtool
 
 realclean: distclean
+        -$(RM) ex.3
         -$(RM) configure config.h.in
         -$(RM) shtool
         -$(RM) ltmain.sh libtool.m4 config.guess config.sub

CVSTrac 2.0.1