Skip to content

Commit b51ee6f

Browse files
committed
Allow make clean removing files to fail
These files might not exist for various reasons, such as a partial install or previous inplace install. They might also have wrong permissions, for example, when they were installed as root.
1 parent f1e5ffd commit b51ee6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ inplace-postinstall-nginx: inplace-postinstall-permissions
293293

294294
# Removes created symlinks; generated logs, submissions, etc. remain in output subdir.
295295
inplace-uninstall-l:
296-
rm -rf $(judgehost_libjudgedir)
297-
rm -rf $(judgehost_bindir)
296+
-rm -rf $(judgehost_libjudgedir)
297+
-rm -rf $(judgehost_bindir)
298298

299299
# Rules to configure and build for a Coverity scan.
300300
coverity-conf:

misc-tools/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ inplace-install-l:
4343

4444
inplace-uninstall-l:
4545
# bindir gets removed from the main Makefile
46-
rm -f $(domserver_libdir)/dj_utils.py
46+
-rm -f $(domserver_libdir)/dj_utils.py
4747

4848
clean-l:
4949
-rm -f $(TARGETS) $(OBJECTS)

0 commit comments

Comments
 (0)