From 1cfbf37756ba6a871e1f89b7797a60e2fe514166 Mon Sep 17 00:00:00 2001 From: Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de> Date: Mon, 29 Jul 2024 19:43:08 +0200 Subject: [PATCH] Clean up clean rules --- examples/Makefile.am | 5 +---- python/Makefile.am | 2 ++ src/Makefile.am | 3 --- test/Makefile.am | 3 --- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/examples/Makefile.am b/examples/Makefile.am index 5a4f0d2e..1a97416a 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -106,13 +106,10 @@ iconoce.$(OBJEXT) \ test_dace.$(OBJEXT): $(mo_event_manager_mod) clean-local: - rm -rf *.dSYM + rm -f *.dat MOSTLYCLEANFILES = $(mo_event_manager_mod) $(mo_exception_mod) $(mo_kind_mod) -mostlyclean-local: - rm -f *.i - # overrides to make regular compilations also use libtool COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) -static $(DEFS) \ diff --git a/python/Makefile.am b/python/Makefile.am index b0c140a9..00dda2ac 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -19,6 +19,8 @@ $(install_tmpdir)/_mtime.py: mtime/_mtime.py $(SED) -n '/^# SET-SOFILE-END-TAG$$/,$$p' $<; \ }>$@ +MOSTLYCLEANFILES = $(nodist_pkgpython_PYTHON) + # overrides to make regular compilations also use libtool COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) -static $(DEFS) \ diff --git a/src/Makefile.am b/src/Makefile.am index 4ce703ff..61468ace 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -142,9 +142,6 @@ endif ENABLE_FORTRAN_HL MOSTLYCLEANFILES = $(all_mods) -mostlyclean-local: - rm -f *.i - EXTRA_DIST = mtime_iso8601.rl # overrides to make regular compilations also use libtool diff --git a/test/Makefile.am b/test/Makefile.am index f84ee979..ac34ca6b 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -28,9 +28,6 @@ libmtime_check_la_SOURCES = \ mtime_timedelta_test.h endif ENABLE_CHECK -clean-local: - rm -rf *.dSYM - # overrides to make regular compilations also use libtool COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) -static $(DEFS) \ -- GitLab