Skip to content

Commit

Permalink
Improve for loops
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-pai-long committed Jun 14, 2023
1 parent 79fe907 commit 238d8db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ help-max-length: # Return the length of the longest explosed(commented with ##)
.PHONY: link
link: ## Create symlinks for all files in $HOME.

@for f in $$(find $(FIND_PATTERN) -exec readlink -f {} \;); \
do ln -sfT $$f $(USER_HOME)/$$(basename $$f); \
@for f in $$(find $(FIND_PATTERN) -exec readlink -f {} \;); do \
ln -sfT $$f $(USER_HOME)/$$(basename $$f); \
done

.PHONY: clean
clean: ## Remove all symlinks from $HOME.

@for f in $$(find $(FIND_PATTERN) -exec basename {} \;); \
do rm -rf $(USER_HOME)/$$f; \
@for f in $$(find $(FIND_PATTERN) -exec basename {} \;); do \
rm -rf $(USER_HOME)/$$f; \
done

.PHONY: todo-max-length
Expand Down

0 comments on commit 238d8db

Please sign in to comment.