aboutsummaryrefslogtreecommitdiffstats
path: root/community/unison/makefile-fix-clean.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/unison/makefile-fix-clean.patch')
-rw-r--r--community/unison/makefile-fix-clean.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/unison/makefile-fix-clean.patch b/community/unison/makefile-fix-clean.patch
new file mode 100644
index 0000000000..1b584d0f47
--- /dev/null
+++ b/community/unison/makefile-fix-clean.patch
@@ -0,0 +1,25 @@
+$(FSMONITOR) starts with a hyphen, so it's interpreted as an option.
+$(NAME) is empty, so -blob is interpreted as an option.
+
+--- a/fsmonitor/linux/Makefile
++++ b/fsmonitor/linux/Makefile
+@@ -26,4 +26,4 @@
+
+ clean::
+ rm -f $(DIR)/*.cm[iox] $(DIR)/*.o $(DIR)/*~
+- rm -f $(FSMONITOR)$(EXEC_EXT)
+\ No newline at end of file
++ rm -f -- $(FSMONITOR)$(EXEC_EXT)
+--- a/Makefile
++++ b/Makefile
+@@ -354,8 +354,8 @@
+ clean::
+ -$(RM) *.log *.aux *.log *.dvi *.out *.bak
+ -$(RM) -r obsolete
+- -$(RM) $(NAME) $(NAME).exe
+- -$(RM) $(NAME)-blob.o
++ -$(RM) -- $(NAME) $(NAME).exe
++ -$(RM) -- $(NAME)-blob.o
+
+ clean::
+ $(MAKE) -C ubase clean