dect
/
libdect
Archived
13
0
Fork 0

build: fix make clean to remove the library and executables

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2009-11-28 02:14:59 +01:00
parent 15c7b206d7
commit b05ef8ce8e
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,8 @@ $(1)-depfiles := $$(patsubst $(SUBDIR)%.o,$(SUBDIR).%.d,$$($(1)-obj))
.PHONY: $(1)-clean
$(1)-clean:
@echo -e " CLEAN\t\t$(1)"
$$(RM) $$($(1)-obj) $$($(1)-depfiles) $$($(1)-extra-clean-files) $(1)
$$(RM) $$($(1)-obj) $$($(1)-depfiles) \
$$($(1)-clean_files) $$($(1)-extra-clean-files)
clean_targets += $(1)-clean
.PHONY: $(1)-install
@ -61,6 +62,8 @@ $(SUBDIR)$(1): $$($(1)-extra-targets) $$($(1)-obj)
$$(CC) $$($(1)-obj) $$(LDFLAGS) -o $$@
all_targets += $(SUBDIR)$(1)
$(1)-clean_files += $(SUBDIR)$(1)
$(1)-install:
@echo -e " INSTALL\t$1"
$(MKDIR_P) $$(DESTDIR)/$$($(1)-destdir)
@ -78,6 +81,8 @@ $(SUBDIR)lib$(1).so: $$($(1)-extra-targets) $$($(1)-obj)
$(LN_S) -f lib$(1).so $$@.0
all_targets += $(SUBDIR)lib$(1).so
$(1)-clean_files += $(SUBDIR)lib$(1).so $(SUBDIR)lib$(1).so.0
$(1)-install:
@echo -e " INSTALL\t$1"
$(MKDIR_P) $$(DESTDIR)/$$($(1)-destdir)