[LTP] [PATCH 2/3] make: Delete gitignore.mk
Petr Vorel
petr.vorel@gmail.com
Thu Jan 4 22:19:34 CET 2024
From: Petr Vorel <pvorel@suse.cz>
We don't use this old functionality any more.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Makefile | 1 -
include/mk/gitignore.mk | 51 -------------------------------------
testcases/realtime/Makefile | 1 -
3 files changed, 53 deletions(-)
delete mode 100644 include/mk/gitignore.mk
diff --git a/Makefile b/Makefile
index ee92e64ea..49d91f4d5 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 475206dcd..000000000
--- 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 a7491654c..61663bfd9 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
--
2.43.0
More information about the ltp
mailing list