DEPFILES := $(addsuffix .d,$(OBJ))
_BIN := $(OUTPUTDIR)Libs/$(BIN)
+_XBIN := $(addprefix $(OUTPUTDIR)Libs/,$(EXTRABIN))
-.PHONY: all clean install
+.PHONY: all clean install postbuild
-all: $(_BIN)
+all: $(_BIN) $(_XBIN)
clean:
- $(RM) $(_BIN) $(OBJ) $(_BIN).dsm $(DEPFILES)
+ $(RM) $(_BIN) $(_XBIN) $(OBJ) $(_BIN).dsm $(DEPFILES)
-install: $(_BIN)
- $(xCP) $(_BIN) $(DISTROOT)/Libs/
+install: all
+ @$(xMKDIR) $(DISTROOT)/Libs; true
+ $(xCP) $(_BIN) $(_XBIN) $(DISTROOT)/Libs/
$(_BIN): $(OBJ)
@mkdir -p $(dir $(_BIN))