make rrdtool use rrd_config.h instead of config.h since this is just bound to lead...
[rrdtool.git] / netware / Makefile
index a38ac70..c2aecaf 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 $@