Skip to content

Commit

Permalink
make: Use find's -delete action instead of -exec rm
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Mar 20, 2024
1 parent 52234b0 commit 96ea859
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions borg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ ifeq "$(BORG_CLEAN_ELN)" "true"
$(BORG_ARGUMENTS) \
--funcall borg--batch-clean 2>&1
else
@find . -name '*.elc' -exec rm '{}' ';'
@find . -name '*-autoloads.el' -exec rm -v '{}' ';'
@find . -name '*.elc' -printf 'removed %p\n' -delete
@find . -name '*-autoloads.el' -printf 'removed %p\n' -delete
endif

clean-force:
@find . -name '*.elc' -exec rm -v '{}' ';'
@find . -name '*-autoloads.el' -exec rm -v '{}' ';'
@find . -name '*.elc' -printf 'removed %p\n' -delete
@find . -name '*-autoloads.el' -printf 'removed %p\n' -delete

build: init-clean
@$(EMACS) $(EMACS_ARGUMENTS) $(EMACS_EXTRA) $(SILENCIO) \
Expand Down

0 comments on commit 96ea859

Please sign in to comment.