From 6d498202184f932b010e5dfc7d3f89093a597813 Mon Sep 17 00:00:00 2001
From: Steffen Vogel <post@steffenvogel.de>
Date: Wed, 4 Apr 2018 09:03:19 +0200
Subject: [PATCH] get rid of make/ folder

---
 Makefile                            | 10 +++---
 make/Makefile.help => Makefile.help |  0
 make/Makefile.complete              | 49 -----------------------------
 3 files changed, 5 insertions(+), 54 deletions(-)
 rename make/Makefile.help => Makefile.help (100%)
 delete mode 100644 make/Makefile.complete

diff --git a/Makefile b/Makefile
index edad5a1eb..af3c92843 100644
--- a/Makefile
+++ b/Makefile
@@ -48,12 +48,13 @@ V ?= 2
 # Platform
 PLATFORM ?= $(shell uname)
 
+include Makefile.help
 include Makefile.config
 
 ifeq ($(WITH_SRC),1)
 	MODULES += src
 endif
-	
+
 ifeq ($(WITH_TOOLS),1)
 	MODULES += tools
 endif
@@ -122,7 +123,7 @@ ifdef CI
 
 	GIT_REV    := $(shell echo $${CI_COMMIT_SHA:0:7})
 	GIT_BRANCH := $(CI_COMMIT_REF_NAME)
-	
+
 	ifdef CI_COMMIT_TAG
 		RELEASE = 1
 	else
@@ -131,7 +132,7 @@ ifdef CI
 else
 	GIT_REV    := $(shell git rev-parse --short=7    HEAD)
 	GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
-	
+
 	RELEASE = 1.$(subst -,_,$(GIT_BRANCH))_$(subst -,_,$(VARIANT)).$(shell date +%Y%m%d)git$(GIT_REV)
 endif
 
@@ -153,7 +154,7 @@ LDLIBS += $(shell $(PKGCONFIG) --libs ${PKGS})
 all:                          $(filter-out $(MODULES_EXCLUDE),$(MODULES))
 install: $(addprefix install-,$(filter-out $(MODULES_EXCLUDE),$(MODULES)))
 clean:   $(addprefix clean-,  $(filter-out $(MODULES_EXCLUDE),$(MODULES)))
-	
+
 src plugins tools tests: lib
 
 # Build all variants: debug, coverage, ...
@@ -173,6 +174,5 @@ escape = $(shell echo $1 | tr a-z- A-Z_ | tr -dc ' A-Z0-9_')
 
 .PHONY: all everything clean install
 
-include $(wildcard $(SRCDIR)/make/Makefile.*)
 include $(wildcard $(BUILDDIR)/**/*.d)
 include $(patsubst %,$(SRCDIR)/%/Makefile.inc,$(MODULES))
diff --git a/make/Makefile.help b/Makefile.help
similarity index 100%
rename from make/Makefile.help
rename to Makefile.help
diff --git a/make/Makefile.complete b/make/Makefile.complete
deleted file mode 100644
index 47676e496..000000000
--- a/make/Makefile.complete
+++ /dev/null
@@ -1,49 +0,0 @@
-# Makefile for clang autocompletion
-#
-# This Makefile produces .clang_complete files containing compiler flags
-# which are used by clang autocompletion tools such as:
-#
-#   - https://atom.io/packages/autocomplete-clang
-#   - https://github.com/Rip-Rip/clang_complete
-#
-# @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
-# @copyright 2017, Institute for Automation of Complex Power Systems, EONERC
-# @license GNU General Public License (version 3)
-#
-# VILLASnode
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-###################################################################################
-
-SRCMODULES = src lib plugins tools tests/unit
-
-CLANG_COMPLETES = $(patsubst %,$(SRCDIR)/%/.clang_complete,$(SRCMODULES))
-
-tests/unit/.clang_complete: FLAGS = $(TEST_CFLAGS)
-src/.clang_complete:        FLAGS = $(SRC_CFLAGS)
-tools/.clang_complete:      FLAGS = $(TOOLS_CFLAGS)
-plugins/.clang_complete:    FLAGS = $(PLUGIN_CFLAGS)
-lib/.clang_complete:        FLAGS = $(LIB_CFLAGS)
-
-%/.clang_complete:
-	echo "$(FLAGS)" > $@
-
-clang-complete: $(CLANG_COMPLETES)
-
-clean: clean-clang-complete
-
-clean-clang-complete:
-	rm -f $(CLANG_COMPLETES)
-
-.PHONY: clang-complete