mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Simplify default clean rules
This commit is contained in:
parent
af564bb101
commit
44dcf89071
@ -133,11 +133,9 @@ init-default:
|
|||||||
$(MKINSTALLDIRS) $(subdir) >/dev/null; \
|
$(MKINSTALLDIRS) $(subdir) >/dev/null; \
|
||||||
echo 'include $(SRC)/$(RELPATH)/$(subdir)/Makefile' > $(subdir)/Makefile;)
|
echo 'include $(SRC)/$(RELPATH)/$(subdir)/Makefile' > $(subdir)/Makefile;)
|
||||||
|
|
||||||
clean-default: clean-test
|
clean-default cleanall-default:
|
||||||
@-test -z "$(CLEAN)" || $(RM) $(CLEAN)
|
@-test -z "$(CLEAN)" || $(RM) $(CLEAN)
|
||||||
|
|
||||||
cleanall-default: clean-default
|
|
||||||
|
|
||||||
check-default:
|
check-default:
|
||||||
ifneq ($(SPARSE),)
|
ifneq ($(SPARSE),)
|
||||||
@$(foreach file, $(wildcard *.c), \
|
@$(foreach file, $(wildcard *.c), \
|
||||||
@ -149,7 +147,6 @@ endif
|
|||||||
# Auto-testing infrastructure
|
# Auto-testing infrastructure
|
||||||
#
|
#
|
||||||
|
|
||||||
clean-test:
|
|
||||||
test-default:
|
test-default:
|
||||||
|
|
||||||
ifdef TEST_PROGS
|
ifdef TEST_PROGS
|
||||||
@ -173,6 +170,7 @@ clean-test:
|
|||||||
@rm -fr trash
|
@rm -fr trash
|
||||||
|
|
||||||
CLEAN += $(TEST_PROGS) $(addsuffix .o,$(TEST_PROGS))
|
CLEAN += $(TEST_PROGS) $(addsuffix .o,$(TEST_PROGS))
|
||||||
|
clean-default: clean-test
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: $(TESTS)
|
.PHONY: $(TESTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user