1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

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.
This commit is contained in:
Paul Eggert 2017-04-06 13:41:30 -07:00
parent 69061fd134
commit 360b2bf2f6

View File

@ -111,15 +111,15 @@ TAGS: $(ETAGS) $(tagsfiles)
$(ETAGS) $(tagsfiles)
.PHONY: $(ETAGS) tags
clean mostlyclean:
rm -f *.[ao] \#* $(DEPDIR)/*
distclean: clean
rm -f Makefile $(BUILT_SOURCES)
clean:
rm -f *.[ao] *-t \#* $(DEPDIR)/*
mostlyclean: clean
rm -f $(filter-out %-t,$(MOSTLYCLEANFILES))
distclean bootstrap-clean: mostlyclean
rm -f Makefile
rm -fr $(DEPDIR)
bootstrap-clean: distclean
rm -f TAGS
maintainer-clean: bootstrap-clean
rm -f gnulib.mk
maintainer-clean: distclean
rm -f TAGS gnulib.mk
.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.