Skip to content

Commit 3c2ef23

Browse files
committed
fix clean target
1 parent 64a803a commit 3c2ef23

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ $(NIF_SO): $(PRIV_DIR) $(LIBUV_A)
4848
fi
4949

5050
clean:
51-
rm -f $(NIF_SO)
52-
rm -f $(SPAWN_HELPER)
51+
@ rm -rf "$(PRIV_DIR)"
52+
@ rm -rf "$(LIBUV_BUILD_DIR)"
53+
@ rm -rf "$(NIF_BUILD_DIR)"

Makefile.win

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ $(NIF_SO): $(PRIV_DIR) $(NIF_BUILD_DIR) $(LIBUV_A)
6161
)
6262

6363
clean:
64-
@ if exist "$(NIF_SO)" del "$(NIF_SO)"
65-
@ if exist "$(SPAWN_HELPER)" del "$(SPAWN_HELPER)"
64+
@ if exist "$(PRIV_DIR)" rmdir /s /q "$(PRIV_DIR)"
65+
@ if exist "$(LIBUV_BUILD_DIR)" rmdir /s /q "$(LIBUV_BUILD_DIR)"
66+
@ if exist "$(NIF_BUILD_DIR)" rmdir /s /q "$(NIF_BUILD_DIR)"

0 commit comments

Comments
 (0)