Skip to content

Commit

Permalink
fix clean target
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jun 14, 2024
1 parent 64a803a commit 3c2ef23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ $(NIF_SO): $(PRIV_DIR) $(LIBUV_A)
fi

clean:
rm -f $(NIF_SO)
rm -f $(SPAWN_HELPER)
@ rm -rf "$(PRIV_DIR)"
@ rm -rf "$(LIBUV_BUILD_DIR)"
@ rm -rf "$(NIF_BUILD_DIR)"
5 changes: 3 additions & 2 deletions Makefile.win
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ $(NIF_SO): $(PRIV_DIR) $(NIF_BUILD_DIR) $(LIBUV_A)
)

clean:
@ if exist "$(NIF_SO)" del "$(NIF_SO)"
@ if exist "$(SPAWN_HELPER)" del "$(SPAWN_HELPER)"
@ if exist "$(PRIV_DIR)" rmdir /s /q "$(PRIV_DIR)"
@ if exist "$(LIBUV_BUILD_DIR)" rmdir /s /q "$(LIBUV_BUILD_DIR)"
@ if exist "$(NIF_BUILD_DIR)" rmdir /s /q "$(NIF_BUILD_DIR)"

0 comments on commit 3c2ef23

Please sign in to comment.