summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 963270a)
raw | patch | inline | side by side (parent: 963270a)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 17 Sep 2006 20:31:26 +0000 (20:31 +0000) | ||
committer | oetiker <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@894 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@894 a5681a0c-68f1-0310-ab6d-d61299d08faa
diff --git a/program/MakeMakefile b/program/MakeMakefile
index 26cc0059bf465ca7c01fc3607a56f63cf3a340e6..c6f02f4e294243ee656d37e0e915336a1b72fbe7 100755 (executable)
--- a/program/MakeMakefile
+++ b/program/MakeMakefile
$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)
# 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)
*/
#define VERSION_SAVED VERSION
#undef VERSION
-#include "../../config.h"
+#include "../../rrd_config.h"
#include "../../src/rrd_tool.h"
#undef VERSION
#define VERSION VERSION_SAVED
diff --git a/program/configure.ac b/program/configure.ac
index e50796edaa116d13ecec02c53c134ee5bb39e487..a6cd1e6f62df5e73e560ac448992847e43de4d25 100644 (file)
--- a/program/configure.ac
+++ b/program/configure.ac
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
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
#error "Can't compile without isinf function"
#endif
-#endif /* CONFIG_H */
+#endif /* RRD_CONFIG_H */
])
dnl Process Special Options
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)
--- a/program/netware/Makefile
+++ b/program/netware/Makefile
@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) >> $@
ifdef WITH_PIECHART
@echo $(DL)#define WITH_PIECHART 1$(DL) >> $@
endif
+ @echo $(DL)#endif /* RRD_CONFIG_H */$(DL) >> $@
$(DISTDIR)/readme.txt: Makefile
@echo Creating $@
diff --git a/program/src/getopt.c b/program/src/getopt.c
index c1fd726b2d568d69c9178669b1af8375a56c558b..a2179c6f503513e892b4821ba0d39ad44124077e 100644 (file)
--- a/program/src/getopt.c
+++ b/program/src/getopt.c
#endif
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "../rrd_config.h"
#endif
#if !defined (__STDC__) || !__STDC__
diff --git a/program/src/getopt1.c b/program/src/getopt1.c
index 8347bb133155792872e8758a5b6106007fa94a00..d26b58451edfe19bab82ee45406668936a8f707d 100644 (file)
--- a/program/src/getopt1.c
+++ b/program/src/getopt1.c
Boston, MA 02111-1307, USA. */
\f
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "../rrd_config.h"
#endif
#include "getopt.h"
diff --git a/program/src/rrd_afm.c b/program/src/rrd_afm.c
index f7eea892fc58492b44cd565677f61e9821efd5ec..fec18df716c3d789a4e41a5276cc00e874eaf3e9 100644 (file)
--- a/program/src/rrd_afm.c
+++ b/program/src/rrd_afm.c
#include "../win32/config.h"
#else
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "../rrd_config.h"
#endif
#endif
diff --git a/program/src/rrd_tool.h b/program/src/rrd_tool.h
index c554099dd125469a03b8f8343d497fcbe32be05d..bb96194feaee7d357efe7dec6833f5ce1779ca73 100644 (file)
--- a/program/src/rrd_tool.h
+++ b/program/src/rrd_tool.h
#include "../win32/config.h"
#else
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "../rrd_config.h"
#endif
#endif
diff --git a/program/win32/Makefile b/program/win32/Makefile
index 7ed9c7694a7a68d174a687e5745d2a2220c70241..5c086a580d058bead5052a714a492e089f032e4a 100644 (file)
--- a/program/win32/Makefile
+++ b/program/win32/Makefile
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)
@-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)
clean:
-$(RM) -r $(OBJDIR)
- -$(RM) $(PROOT)/config.h
+ -$(RM) $(PROOT)/rrd_config.h
distclean: clean
-$(RM) -r $(DISTDIR)
@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) >> $@
ifdef WITH_PIECHART
@echo $(DL)#define WITH_PIECHART 1$(DL) >> $@
endif
+ @echo $(DL)#endif /* RRD_CONFIG_H */$(DL) >> $@
$(DISTDIR)/readme.txt: Makefile
@echo Creating $@