Skip to content

Commit b5f07c5

Browse files
obnoxxxmergify[bot]
authored andcommitted
Makefile: reorganize clean* targets
Signed-off-by: Michael Adam <[email protected]>
1 parent 4006902 commit b5f07c5

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,6 @@ check-gitlint: $(filter $(ALT_BIN)%,$(GITLINT))
290290
$(GITLINT) -C .gitlint --commits origin/master.. lint
291291
.PHONY: check-gitlint
292292

293-
### Misc. Rules ###
294-
295-
clean: clean-buildfiles clean-altbin
296-
clean-buildfiles:
297-
$(RM) $(BUILDFILE_PREFIX)*
298-
.PHONY: clean clean-buildfiles
299-
300293
# _img_build is an "internal" rule to make the building of samba-container
301294
# images regular and more "self documenting". A makefile.foo that includes
302295
# this Makefile can add build rules using _img_build as a building block.
@@ -329,6 +322,16 @@ $(DIR)/.common: $(COMMON_DIR)
329322
$(ALT_BIN)/%:
330323
$(CURDIR)/hack/install-tools.sh --$* $(ALT_BIN)
331324

325+
326+
327+
### Misc. Rules ###
328+
329+
clean: clean-buildfiles clean-altbin
330+
.PHONY: clean
331+
clean-buildfiles:
332+
$(RM) $(BUILDFILE_PREFIX)*
333+
.PHONY: clean-buildfiles
332334
clean-altbin:
333335
$(RM) -r $(ALT_BIN)
334336
.PHONY: clean-altbin
337+

0 commit comments

Comments
 (0)