OSSP CVS Repository

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

ossp-pkg/cfg/Makefile.in 1.2 -> 1.3

--- Makefile.in  2002/07/10 12:00:23     1.2
+++ Makefile.in  2002/08/02 19:07:12     1.3
@@ -30,6 +30,7 @@
 
 @SET_MAKE@
 
+#   installation paths
 DESTDIR     =
 prefix      = @prefix@
 exec_prefix = @exec_prefix@
@@ -38,6 +39,7 @@
 includedir  = @includedir@
 mandir      = @mandir@
 
+#   build tools
 CC          = @CC@
 CPPFLAGS    = @CPPFLAGS@
 CFLAGS      = @DEFS@ @CFLAGS@
@@ -52,31 +54,36 @@
 FLEX        = @FLEX@
 BISON       = @BISON@
 
+#   build objects
 LIB_NAME    = libcfg.la
 LIB_OBJS    = cfg_main.lo cfg_buf.lo cfg_grid.lo cfg_data.lo cfg_node.lo cfg_fmt.lo \
-              cfg_syn.lo cfg_syn_parse.lo cfg_syn_scan.lo cfg_util.lo
-
+              cfg_syn.lo cfg_syn_parse.lo cfg_syn_scan.lo cfg_util.lo cfg_vers.lo
 TST_NAME    = cfg_test
 TST_OBJS    = cfg_test.o
 
+#   recognized suffixes for implicit rules
 .SUFFIXES:
 .SUFFIXES: .c .o .lo
 
+#   default target
 all: $(LIB_NAME) $(TST_NAME)
 
+#   implicit rules for compilation
 .c.o:
         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
-
 .c.lo:
-        @$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+        $(LIBTOOL) --quiet --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
 
+#   explicit rule for library linking
 $(LIB_NAME): $(LIB_OBJS)
-        @$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \
-            -version-info `$(SHTOOL) version -l txt -d libtool VERSION`
+        $(LIBTOOL) --quiet --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \
+            -version-info `$(SHTOOL) version -l c -d libtool cfg_vers.c`
 
+#   explicit rule for test program linking
 $(TST_NAME): $(TST_OBJS) $(LIB_NAME)
-        @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(TST_NAME) $(TST_OBJS) $(LIB_NAME) $(LIBS)
+        $(LIBTOOL) --quiet --mode=link $(CC) $(LDFLAGS) -o $(TST_NAME) $(TST_OBJS) $(LIB_NAME) $(LIBS)
 
+#   explicit rules for compiler construction tools
 cfg_syn.c: cfg_syn.h cfg_syn_parse.h
 cfg_syn_scan.o: cfg_syn_scan.c cfg_syn_parse.h
 cfg_syn_scan.c: cfg_syn_scan.l
@@ -84,23 +91,23 @@
 cfg_syn_parse.c cfg_syn_parse.h: cfg_syn_parse.y
         $(BISON) -d -k -pcfg_syn_ -ocfg_syn_parse.c cfg_syn_parse.y
 
+#   explicit rule for manual page construction
 man: cfg.3
 cfg.3: cfg.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;).*;;'`; \
+        V1=`$(SHTOOL) version -l c -d short cfg_vers.c`; \
+        V2=`$(SHTOOL) version -l c -d long cfg_vers.c`; \
+        D=`$(SHTOOL) version -l c -d long cfg_vers.c | sed -e 's;.*(;;' -e 's;).*;;'`; \
         $(POD2MAN) --quotes=none \
                    --section=3 --center="Configuration Parsing" \
                    --release="$$D" --date="OSSP cfg $$V1" cfg.pod | \
         sed -e "s;CFG_VERSION_STR;$$V2;" >cfg.3
 
+#   running the test suite
+test: check
 check: $(TST_NAME)
-        @$(LIBTOOL) --mode=execute ./$(TST_NAME)
-test1:
-        ./$(TST_NAME) sample.cfg
-test2:
-        ./$(TST_NAME) sample2.cfg
+        @./$(TST_NAME) cfg_test.cfg
 
+#   perform installation procedure
 install:
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix)
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
@@ -110,10 +117,11 @@
         $(SHTOOL) install -c -m 755 cfg-config $(DESTDIR)$(bindir)/
         $(SHTOOL) install -c -m 644 cfg.h $(DESTDIR)$(includedir)/
         $(SHTOOL) install -c -m 644 cfg.3 $(DESTDIR)$(mandir)/man3/
-        @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libcfg.la $(DESTDIR)$(libdir)/
+        $(LIBTOOL) --quiet --mode=install $(SHTOOL) install -c -m 644 libcfg.la $(DESTDIR)$(libdir)/
 
+#   perform uninstallation procedure
 uninstall:
-        @$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libcfg.la
+        $(LIBTOOL) --quiet --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libcfg.la
         -$(RM) $(DESTDIR)$(mandir)/man3/cfg.3
         -$(RM) $(DESTDIR)$(includedir)/cfg.h
         -$(RM) $(DESTDIR)$(bindir)/cfg-config
@@ -124,17 +132,20 @@
         -$(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE)
         -$(RMDIR) $(DESTDIR)$(prefix) >/dev/null 2>&1 || $(TRUE)
 
+#   perform build clean up procedure
 clean:
         -$(RM) $(LIB_NAME) $(LIB_OBJS)
         -$(RM) $(TST_NAME) $(TST_OBJS)
         -$(RM) -r .libs >/dev/null 2>&1 || $(TRUE)
         -$(RM) *.o *.lo
 
+#   perform distribution clean up procedure
 distclean: clean
         -$(RM) config.log config.status config.cache
         -$(RM) Makefile config.h cfg-config
         -$(RM) libtool
 
+#   perform developer clean up procedure
 realclean: distclean
         -$(RM) cfg.3
         -$(RM) configure config.h.in

CVSTrac 2.0.1