Skip to content

Commit d88db7b

Browse files
make EXTRA_CLEAN a command that can be run
Signed-off-by: mateoconlechuga <matthewwaltzis@gmail.com>
1 parent 0159f9c commit d88db7b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/static/makefile-options.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ Extra libload (``.lib``) libraries to be added at link time.
194194
195195
EXTRA_LIBLOAD_LIBS = <space separated list of libraries>
196196
197+
Extra command(s) to run when :code:`make clean` is executed.
198+
199+
.. code-block:: makefile
200+
201+
EXTRA_CLEAN =
202+
197203
.. rubric:: MAKE_GFX
198204

199205
This is the command that is run when :code:`make gfx` is executed.

src/makefile.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ $(ICONSRC): $(ICONIMG) $(MAKEFILE_LIST) $(DEPS)
290290
endif
291291

292292
clean:
293-
$(Q)$(call RM,$(EXTRA_CLEAN))
293+
$(Q)$(EXTRA_CLEAN)
294294
$(Q)$(call RMDIR,$(OBJDIR) $(BINDIR))
295295
$(Q)echo Removed built binaries and objects.
296296

0 commit comments

Comments
 (0)