diff --git a/Makefile b/Makefile index ee92e64ea70..49d91f4d598 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,6 @@ top_srcdir ?= $(CURDIR) include $(top_srcdir)/include/mk/env_pre.mk include $(top_srcdir)/include/mk/automake.mk -include $(top_srcdir)/include/mk/gitignore.mk .SUFFIXES: .SUFFIXES: .am .default .h .in .m4 .mk diff --git a/include/mk/gitignore.mk b/include/mk/gitignore.mk deleted file mode 100644 index 475206dcd2d..00000000000 --- a/include/mk/gitignore.mk +++ /dev/null @@ -1,51 +0,0 @@ -# -# gitignore generation include Makefile. -# -# Copyright (C) 2011, Linux Test Project. -# -# 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 2 of the License, or -# (at your option) 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, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Ngie Cooper, January 2011 -# - -CLEAN_TARGETS+= gitignore_clean - -BEFORE:= .gitignore-before - -AFTER:= .gitignore-after - -IGNORE_DIR_EXPR:= egrep -v "^$$(echo "$(AUTOCONFED_SUBDIRS)" | tr " " "|")" - -# NOTE: The underscore is used in place of a dash to avoid implicit rule -# evaluation in top-level Makefile. -.PHONY: gitignore_clean -gitignore_clean: - $(RM) -f $(BEFORE) $(AFTER) - -$(BEFORE): - $(MAKE) distclean - $(MAKE) ac-maintainer-clean - find . | $(IGNORE_DIR_EXPR) > $@ - -$(AFTER): - $(MAKE) autotools - ./configure --prefix=/dev/null - $(MAKE) all - find . | $(IGNORE_DIR_EXPR) > $@ - # Set everything in autoconf land back to a sane state. - $(MAKE) distclean - -.gitignore: | $(BEFORE) $(AFTER) - diff -u $(BEFORE) $(AFTER) | grep '^+' | sed -e 's,^\+,,g' > $@ diff --git a/testcases/realtime/Makefile b/testcases/realtime/Makefile index a7491654c29..61663bfd9ff 100644 --- a/testcases/realtime/Makefile +++ b/testcases/realtime/Makefile @@ -36,7 +36,6 @@ include $(top_srcdir)/include/mk/env_pre.mk ifeq ($(filter autotools %clean .gitignore gitignore.%,$(MAKECMDGOALS)),) include $(abs_srcdir)/config.mk endif -include $(top_srcdir)/include/mk/gitignore.mk LIBDIR := lib FILTER_OUT_DIRS := $(LIBDIR) m4