From e627c4192a4c4a5b944cccd0788c3b198d778409 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 27 May 2016 15:32:35 -0400 Subject: (systemd) stuff --- automake.tail.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/automake.tail.mk b/automake.tail.mk index a24820b..ba31935 100644 --- a/automake.tail.mk +++ b/automake.tail.mk @@ -56,8 +56,9 @@ _am_phony = build install uninstall mostlyclean clean distclean maintainer-clean .PHONY: $(addprefix $(outdir)/,$(_am_phony)) $(addprefix $(outdir)/,uninstall mostlyclean clean distclean maintainer-clean):: - $(RM) -- $(sort $(_am_$(@F)/$(@D))) - $(RMDIRS) $(sort $(dir $(_am_$(@F)/$(@D)))) 2>/dev/null || $(TRUE) + $(RM) -- $(filter-out %/,$(sort $(_am_$(@F)/$(@D)))) + $(RM) -r -- $(filter %/,$(sort $(_am_$(@F)/$(@D)))) + $(RMDIRS) $(sort $(dir $(patsubst %/,%,$(_am_$(@F)/$(@D))))) 2>/dev/null || $(TRUE) # 'build' and 'install' must be defined later, because the # am_*_files/* variables might not be complete yet. -- cgit v1.2.3-54-g00ecf