Skip to content

Commit 9bc49fb

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 6a70aa0 commit 9bc49fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ inplace-postinstall-nginx: inplace-postinstall-permissions
292292

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

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

misc-tools/Makefile

+1-1
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)