diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-27 15:32:35 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-27 15:32:35 -0400 |
commit | e627c4192a4c4a5b944cccd0788c3b198d778409 (patch) | |
tree | 9b67a77b52e206e8908121589730e4a72c88dbc7 | |
parent | bb49e46b89b65923ea8e2d26c85a116d8be8e35e (diff) |
(systemd) stuff
-rw-r--r-- | automake.tail.mk | 5 |
1 files 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. |