Skip to content

Commit 360b2bf

Browse files
committed
Fix 'make clean' in lib subdirectory
* lib/Makefile.in (clean): Remove *-t files. (mostlyclean): Remove MOSTLYCLEANFILES that are not *-t files. This removes files like lib/getopt.h that should be removed even if this configuration did not need to build them. (maintainer-clean): Remove TAGS here, not in distclean, to be consistent with ../src/Makefile.in.
1 parent 69061fd commit 360b2bf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/Makefile.in

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ TAGS: $(ETAGS) $(tagsfiles)
111111
$(ETAGS) $(tagsfiles)
112112
.PHONY: $(ETAGS) tags
113113

114-
clean mostlyclean:
115-
rm -f *.[ao] \#* $(DEPDIR)/*
116-
distclean: clean
117-
rm -f Makefile $(BUILT_SOURCES)
114+
clean:
115+
rm -f *.[ao] *-t \#* $(DEPDIR)/*
116+
mostlyclean: clean
117+
rm -f $(filter-out %-t,$(MOSTLYCLEANFILES))
118+
distclean bootstrap-clean: mostlyclean
119+
rm -f Makefile
118120
rm -fr $(DEPDIR)
119-
bootstrap-clean: distclean
120-
rm -f TAGS
121-
maintainer-clean: bootstrap-clean
122-
rm -f gnulib.mk
121+
maintainer-clean: distclean
122+
rm -f TAGS gnulib.mk
123123
.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
124124

125125
# Tell versions [3.59,3.63) of GNU make to not export all variables.

0 commit comments

Comments
 (0)