* 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.
$(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.