Code

make rrdtool use rrd_config.h instead of config.h since this is just bound to lead...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 17 Sep 2006 20:31:26 +0000 (20:31 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 17 Sep 2006 20:31:26 +0000 (20:31 +0000)
fix clean target in bindings directory

git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@894 a5681a0c-68f1-0310-ab6d-d61299d08faa

MakeMakefile
bindings/Makefile.am
bindings/perl-shared/RRDs.xs
configure.ac
netware/Makefile
src/getopt.c
src/getopt1.c
src/rrd_afm.c
src/rrd_tool.h
win32/Makefile

index 26cc0059bf465ca7c01fc3607a56f63cf3a340e6..c6f02f4e294243ee656d37e0e915336a1b72fbe7 100755 (executable)
@@ -63,4 +63,5 @@ $aclocal
 $automake --foreign --add-missing --force-missing --copy --warnings=all
 autoconf --warnings=all --force
 # one again to make every body happy
+
 autoreconf
index 67df11f5923051dfc5596959c151da7870171b4c..2bd1a207de2d171533fc1bb3de4dfe1517715e64 100644 (file)
@@ -35,7 +35,9 @@ perl-shared/Makefile: perl-shared/Makefile.PL
 # LIBS="$(LDFLAGS) $(LIBS)" $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
 
 clean-local:
-       test -f perl-piped/Makefile && cd perl-piped && $(MAKE) clean || rm perl-piped/Makefile || true
-       test -f perl-shared/Makefile && cd perl-shared && $(MAKE) clean || rm perl-shared/Makefile || true
+       test -f perl-piped/Makefile && cd perl-piped && $(MAKE) clean || true
+       test -f perl-piped/Makefile && rm perl-piped/Makefile || true
+       test -f perl-shared/Makefile && cd perl-shared && $(MAKE) clean || true
+       test -f perl-shared/Makefile && rm -f perl-shared/Makefile || true 
 
 ##END##
index 76f86b8a1815314cbf8710175ece6e119b790d57..f84efef67419f876f2c0ff0035eefee0176801cd 100644 (file)
@@ -24,7 +24,7 @@ extern "C" {
  */
 #define VERSION_SAVED VERSION
 #undef VERSION
-#include "../../config.h"
+#include "../../rrd_config.h"
 #include "../../src/rrd_tool.h"
 #undef VERSION
 #define VERSION VERSION_SAVED
index e50796edaa116d13ecec02c53c134ee5bb39e487..a6cd1e6f62df5e73e560ac448992847e43de4d25 100644 (file)
@@ -18,7 +18,7 @@ NUMVERS=1.2015
 AC_SUBST(NUMVERS)
 AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE
-AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_HEADERS([rrd_config.h])
 
 dnl all our local stuff like install scripts and include files
 dnl is in there
@@ -37,8 +37,8 @@ dnl At the TOP of the HEADER
 
 AH_TOP([
 
-#ifndef CONFIG_H
-#define CONFIG_H
+#ifndef RRD_CONFIG_H
+#define RRD_CONFIG_H
 /* IEEE can be prevented from raising signals with fpsetmask(0) */
 #undef MUST_DISABLE_FPMASK
 
@@ -149,7 +149,7 @@ char *strchr (), *strrchr ();
 #error "Can't compile without isinf function"
 #endif
 
-#endif /* CONFIG_H */
+#endif /* RRD_CONFIG_H */
 ])
 
 dnl Process Special Options
@@ -573,7 +573,7 @@ AC_OUTPUT
 AC_MSG_CHECKING(in)
 AC_MSG_RESULT(and out again)
 
-echo $ECHO_N "ordering CD from http://people.ee.ethz.ch/oetiker/wish $ECHO_C" 1>&6
+echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
 sleep 1
 echo $ECHO_N ".$ECHO_C" 1>&6
 sleep 1
index a38ac708aaa178e6963c114ab4f79ad50f5bee1b..c2aecafa691e952bee05d94707628e8ce1f600a4 100644 (file)
@@ -426,15 +426,17 @@ ifeq ($(LD),nlmconv)
        @echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@
 endif
 
-$(PROOT)/config.h: Makefile
+$(PROOT)/rrd_config.h: Makefile
        @echo Creating $@
-       @echo $(DL)/* $@ for NetWare target.$(DL) > $@
+        @echo $(DL)/* $(notdir $@) for NetWare target.$(DL) > $@
        @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
        @echo $(DL)** All your changes will be lost!!$(DL) >> $@
        @echo $(DL)*/$(DL) >> $@
        @echo $(DL)#ifndef NETWARE$(DL) >> $@
-       @echo $(DL)#error This config.h is created for NetWare platform!$(DL) >> $@
+        @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
        @echo $(DL)#endif$(DL) >> $@
+        @echo $(DL)#ifndef RRD_CONFIG_H$(DL) >> $@
+        @echo $(DL)#define RRD_CONFIG_H$(DL) >> $@
        @echo $(DL)#define OS "i586-pc-NetWare"$(DL) >> $@
        @echo $(DL)#define PACKAGE_VERSION "$(RRD_VERSION_STR)"$(DL) >> $@
        @echo $(DL)#define PACKAGE_BUGREPORT "tobi@oetiker.ch"$(DL) >> $@
@@ -500,6 +502,7 @@ endif
 ifdef WITH_PIECHART
        @echo $(DL)#define WITH_PIECHART 1$(DL) >> $@
 endif
+       @echo $(DL)#endif /* RRD_CONFIG_H */$(DL) >> $@
 
 $(DISTDIR)/readme.txt: Makefile
        @echo Creating $@
index c1fd726b2d568d69c9178669b1af8375a56c558b..a2179c6f503513e892b4821ba0d39ad44124077e 100644 (file)
@@ -31,7 +31,7 @@
 #endif
 
 #ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "../rrd_config.h"
 #endif
 
 #if !defined (__STDC__) || !__STDC__
index 8347bb133155792872e8758a5b6106007fa94a00..d26b58451edfe19bab82ee45406668936a8f707d 100644 (file)
@@ -20,7 +20,7 @@
    Boston, MA 02111-1307, USA.  */
 \f
 #ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "../rrd_config.h"
 #endif
 
 #include "getopt.h"
index f7eea892fc58492b44cd565677f61e9821efd5ec..fec18df716c3d789a4e41a5276cc00e874eaf3e9 100644 (file)
@@ -8,7 +8,7 @@
 #include "../win32/config.h"
 #else
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "../rrd_config.h"
 #endif
 #endif
 
index c554099dd125469a03b8f8343d497fcbe32be05d..bb96194feaee7d357efe7dec6833f5ce1779ca73 100644 (file)
@@ -15,7 +15,7 @@ extern "C" {
 #include "../win32/config.h"
 #else
 #ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "../rrd_config.h"
 #endif
 #endif
 
index 7ed9c7694a7a68d174a687e5745d2a2220c70241..5c086a580d058bead5052a714a492e089f032e4a 100644 (file)
@@ -229,9 +229,9 @@ LDLIBS      += $(LIBFT2)/objs/freetype.$(LIBEXT)
 
 all: rrdtool rrdcgi
 
-rrdtool: $(OBJDIR) $(PROOT)/config.h $(OBJDIR)/rrdtool.exe
-rrdcgi: $(OBJDIR) $(PROOT)/config.h $(OBJDIR)/rrdcgi.$(CGIEXT)
-librrd: $(OBJDIR) $(PROOT)/config.h $(OBJDIR)/librrd.$(LIBEXT)
+rrdtool: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/rrdtool.exe
+rrdcgi: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/rrdcgi.$(CGIEXT)
+librrd: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/librrd.$(LIBEXT)
 
 dist: all $(DISTDIR) $(DISTDIR)/readme.txt
 #      @-$(CP) $(OBJDIR)/librrd.$(LIBEXT) $(DISTDIR)
@@ -251,7 +251,7 @@ dev: librrd $(DEVLDIR) $(DEVLDIR)/readme.txt
        @-mkdir $(DEVLDIR)$(DS)lib
        @-mkdir $(DEVLDIR)$(DS)src
        @-$(CP) $(OBJDIR)/librrd.$(LIBEXT) $(DEVLDIR)/lib
-       @-$(CP) $(PROOT)/config.h $(DEVLDIR)/include
+       @-$(CP) $(PROOT)/rrd_config.h $(DEVLDIR)/include
        @-$(CP) $(PROOT)/src/rrd.h $(DEVLDIR)/include
        @-$(CP) $(PROOT)/src/*.ttf $(DEVLDIR)/src
        @-$(CP) $(PROOT)/CHANGES $(DEVLDIR)
@@ -264,7 +264,7 @@ dev: librrd $(DEVLDIR) $(DEVLDIR)/readme.txt
 
 clean:
        -$(RM) -r $(OBJDIR)
-       -$(RM) $(PROOT)/config.h
+       -$(RM) $(PROOT)/rrd_config.h
 
 distclean: clean
        -$(RM) -r $(DISTDIR)
@@ -347,15 +347,17 @@ ifdef ICON
        @echo 10 ICON DISCARDABLE "$(ICON)" >> $@
 endif
 
-$(PROOT)/config.h: Makefile $(OBJDIR)/version.inc
+$(PROOT)/rrd_config.h: Makefile $(OBJDIR)/version.inc
        @echo Creating $@
-       @echo $(DL)/* $@ for Win32 target.$(DL) > $@
+       @echo $(DL)/* $(notdir $@) for Win32 target.$(DL) > $@
        @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
        @echo $(DL)** All your changes will be lost!!$(DL) >> $@
        @echo $(DL)*/$(DL) >> $@
        @echo $(DL)#ifndef WIN32$(DL) >> $@
-       @echo $(DL)#error This config.h is created for Win32 platform!$(DL) >> $@
+       @echo $(DL)#error This $(notdir $@) is created for Win32 platform!$(DL) >> $@
        @echo $(DL)#endif$(DL) >> $@
+       @echo $(DL)#ifndef RRD_CONFIG_H$(DL) >> $@
+       @echo $(DL)#define RRD_CONFIG_H$(DL) >> $@
        @echo $(DL)#define OS "i586-pc-Win32"$(DL) >> $@
        @echo $(DL)#define PACKAGE_VERSION "$(RRD_VERSION_STR)"$(DL) >> $@
        @echo $(DL)#define PACKAGE_BUGREPORT "tobi@oetiker.ch"$(DL) >> $@
@@ -415,6 +417,7 @@ endif
 ifdef WITH_PIECHART
        @echo $(DL)#define WITH_PIECHART 1$(DL) >> $@
 endif
+       @echo $(DL)#endif /* RRD_CONFIG_H */$(DL) >> $@
 
 $(DISTDIR)/readme.txt: Makefile
        @echo Creating $@