OSSP CVS Repository

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

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

--- Makefile.in  2001/08/20 10:02:44     1.1
+++ Makefile.in  2001/08/20 10:33:22     1.2
@@ -3,17 +3,28 @@
 
 ROOT    = /cw
 
+DESTDIR     =
+prefix      = @prefix@
+exec_prefix = @exec_prefix@
+bindir      = @bindir@
+libdir      = @libdir@
+includedir  = @includedir@
+mandir      = @mandir@
+
 CC      = @CC@
 CFLAGS  = @CFLAGS@ $(WFLAGS) `$(ROOT)/bin/str-config --cflags`
 WFLAGS  = -pedantic-errors -Wall -Wshadow -Wpointer-arith -Wcast-align -Winline -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long
 LDFLAGS = @LDFLAGS@ `$(ROOT)/bin/str-config --ldflags`
 LIBS    = @LIBS@ `$(ROOT)/bin/str-config --libs`
 
+SHTOOL  = ./shtool
+POD2MAN = pod2man
+
 PROG = lmtp2nntp
 HDRS = lmtp.h nntp.h sa.h argz.h shpat_match.h msg.h trace.h
-OBJS = lmtp2nntp.o lmtp.o nntp.o sa.o argz.o shpat_match.o msg.o trace.o
+OBJS = lmtp2nntp.o lmtp.o nntp.o sa.o argz.o shpat_match.o msg.o trace.o version.o
 
-all: lmtp2nntp
+all: lmtp2nntp lmtp2nntp.1
 
 .c.o:
         $(CC) $(CFLAGS) -c $<
@@ -21,13 +32,39 @@
 $(PROG): Makefile $(OBJS) $(HDRS)
         $(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
 
+lmtp2nntp.1: lmtp2nntp.pod
+        VS=`$(SHTOOL) version -lc -dshort version.c`; \
+        VL=`$(SHTOOL) version -lc -dlong version.c`; \
+        $(POD2MAN) --section=1 --center="Mail to News Gateway" \
+               --release="$$VS" --date="$$VL" \
+               lmtp2nntp.pod >lmtp2nntp.1 
+
+install: all
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
+        $(SHTOOL) install -c -s -m 755 lmtp2nntp $(DESTDIR)$(bindir)/
+        $(SHTOOL) install -c -m 644 lmtp2nntp.1 $(DESTDIR)$(mandir)/man1/
+
 clean:
         -rm -f *.core
         -rm -f $(PROG)
         -rm -f $(OBJS)
+        -rm -f lmtp2nntp.1
 
 distclean: clean
-        -rm -f configure Makefile
+        -rm -f Makefile
+
+realclean: distclean
+        -rm -f configure
+        -rm -f shtool
+
+new-version:
+        $(SHTOOL) version -lc -n lmtp2nntp -p lmtp2nntp_ -e version.c
+
+dist: distclean
+        @$(SHTOOL) fixperm -v .; \
+        V=`$(SHTOOL) version -lc -dshort version.c`; \
+        $(SHTOOL) tarball -o lmtp2nntp-$${V}.tar.gz -d lmtp2nntp-$${V} -u ossp -g ossp \
+                          -e 'CVS,\.cvsignore,\.[ao],^\.,autogen.sh' -c 'gzip --best' .
 
 test: lmtp2nntp
         ./run.sh

CVSTrac 2.0.1