OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/Makefile.in versions 1.11 and 1.12
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sa/Makefile.in 1.11 -> 1.12

--- Makefile.in  2002/01/02 12:43:50     1.11
+++ Makefile.in  2002/01/31 21:35:13     1.12
@@ -48,6 +48,7 @@
 SHTOOL      = ./shtool
 LIBTOOL     = ./libtool
 TRUE        = true
+POD2MAN     = pod2man
 
 LIB_NAME    = libsa.la
 LIB_OBJS    = sa.lo
@@ -73,6 +74,16 @@
 $(TST_NAME): $(TST_OBJS) $(LIB_NAME)
         @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(TST_NAME) $(TST_OBJS) $(LIB_NAME) $(LIBS)
 
+man: sa.3
+sa.3: sa.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="Socket Abstraction" \
+                   --release="$$D" --date="OSSP sa $$V1" sa.pod | \
+        sed -e "s;SA_VERSION_STR;$$V2;" >sa.3
+
 check: $(TST_NAME)
         @$(LIBTOOL) --mode=execute ./$(TST_NAME)
 
@@ -81,14 +92,19 @@
         $(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)/man3
         $(SHTOOL) install -c -m 755 sa-config $(DESTDIR)$(bindir)/
         $(SHTOOL) install -c -m 644 sa.h $(DESTDIR)$(includedir)/
+        $(SHTOOL) install -c -m 644 sa.3 $(DESTDIR)$(mandir)/man3/
         @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libsa.la $(DESTDIR)$(libdir)/
 
 uninstall:
         @$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libsa.la
+        -$(RM) $(DESTDIR)$(mandir)/man3/sa.3
         -$(RM) $(DESTDIR)$(includedir)/sa.h
         -$(RM) $(DESTDIR)$(bindir)/sa-config
+        -$(RMDIR) $(DESTDIR)$(mandir)/man3 >/dev/null 2>&1 || $(TRUE)
+        -$(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)
@@ -106,6 +122,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