Fixing makefiles
[tpg/acess2.git] / Usermode / Libraries / Makefile.tpl
index 5f73632..ccae9ca 100644 (file)
@@ -5,16 +5,18 @@
 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))

UCC git Repository :: git.ucc.asn.au