OSSP CVS Repository

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

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

--- Makefile.in  2004/12/26 13:10:39     1.1
+++ Makefile.in  2004/12/26 15:20:00     1.2
@@ -1,5 +1,5 @@
 ##
-##  OSSP flow2rrd -- NetFlow to Round-Robin Database (RRD)
+##  OSSP flow2rrd -- NetFlow to Round-Robin Database
 ##  Copyright (c) 2004 Ralf S. Engelschall <rse@engelschall.com>
 ##  Copyright (c) 2004 The OSSP Project <http://www.ossp.org/>
 ##
@@ -31,6 +31,7 @@
 prefix      = @prefix@
 exec_prefix = @exec_prefix@
 bindir      = @bindir@
+sysconfdir  = @sysconfdir@
 libdir      = @libdir@
 includedir  = @includedir@
 mandir      = @mandir@
@@ -43,10 +44,21 @@
 PERL        = @PERL@
 POD2MAN     = @POD2MAN@
 
-#   default target
+#   default targets
 all: flow2rrd flow2rrd.1
 
+#   generate program
+flow2rrd: flow2rrd.pl
+        @echo "generating: flow2rrd <-- flow2rrd.pl"; \
+        V=`$(SHTOOL) version -l txt -d long VERSION`; \
+        sed -e "s;@PERL\@;$(PERL);g" \
+            -e "s;@POD2MAN\@;$(POD2MAN);g" \
+            -e "s;@VERSION\@;$$V;g" \
+            <flow2rrd.pl >flow2rrd && chmod a+x flow2rrd
+
+#   generate manual page
 flow2rrd.1: flow2rrd.pod
+        @echo "generating: flow2rrd.1 <-- flow2rrd.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;).*;;'`; \
@@ -55,25 +67,25 @@
                    --release="$$D" --date="OSSP flow2rrd $$V1" flow2rrd.pod | \
         sed -e "s;FLOW2RRD_VERSION_STR;$$V2;" >flow2rrd.1
 
-flow2rrd: flow2rrd.pl
-        sed -e 's;@PERL@;$(PERL);g' \
-            -e 's;@POD2MAN@;$(POD2MAN);g' \
-            <flow2rrd.pl >flow2rrd
-
 #   perform installation procedure
 install:
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix)
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
-        $(SHTOOL) install -c -m 755 flow2rrd $(DESTDIR)$(bindir)/flow2rrd
-        $(SHTOOL) install -c -m 644 flow2rrd.1 $(DESTDIR)$(mandir)/man1/flow2rrd.1
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(sysconfdir)
+        $(SHTOOL) install -c -m 755 flow2rrd $(DESTDIR)$(bindir)/
+        $(SHTOOL) install -c -m 644 flow2rrd.1 $(DESTDIR)$(mandir)/man1/
+        $(SHTOOL) install -c -m 644 flow2rrd.cfg $(DESTDIR)$(sysconfdir)/
 
 #   perform uninstallation procedure
 uninstall:
-        -$(RM) $(DESTDIR)$(mandir)/bin/flow2rrd
+        -$(RM) $(DESTDIR)$(bindir)/flow2rrd
         -$(RM) $(DESTDIR)$(mandir)/man1/flow2rrd.1
-        -$(RMDIR) $(DESTDIR)$(mandir)/man1 >/dev/null 2>&1 || $(TRUE)
+        -$(RM) $(DESTDIR)$(sysconfdir)/flow2rrd.cfg
         -$(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE)
+        -$(RMDIR) $(DESTDIR)$(mandir)/man1 >/dev/null 2>&1 || $(TRUE)
+        -$(RMDIR) $(DESTDIR)$(mandir) >/dev/null 2>&1 || $(TRUE)
+        -$(RMDIR) $(DESTDIR)$(sysconfdir) >/dev/null 2>&1 || $(TRUE)
         -$(RMDIR) $(DESTDIR)$(prefix) >/dev/null 2>&1 || $(TRUE)
 
 #   perform build clean up procedure

CVSTrac 2.0.1