X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fmakebin%2FMakefile;h=b957b8eeffbea1eb7b233a97c9eba3932316eacd;hb=f1c40004ae349f7cd3a1a5c5c85f62f695196370;hp=66e49b30858715328d7494214e6b6a4cb4e5bde7;hpb=fa8d9e5fa4646b55450697b80718e33b579609a8;p=fw%2Fsdcc diff --git a/support/makebin/Makefile b/support/makebin/Makefile index 66e49b30..b957b8ee 100644 --- a/support/makebin/Makefile +++ b/support/makebin/Makefile @@ -11,11 +11,11 @@ $(BIN): $(OBJ) $(CC) $(LDFLAGS) -o $(BIN) $(OBJ) install: all - mkdir -p $(bindir) - $(INSTALL) $(BIN) `echo $(bindir)/makebin$(EXEEXT)|sed '$(transform)'` - $(STRIP) `echo $(bindir)/makebin$(EXEEXT)|sed '$(transform)'` + mkdir -p $(DESTDIR)$(bindir) + $(INSTALL) $(BIN) `echo $(DESTDIR)$(bindir)/makebin$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(DESTDIR)$(bindir)/makebin$(EXEEXT)|sed '$(transform)'` uninstall: - rm -f $(bindir)/makebin$(EXEEXT) + rm -f $(DESTDIR)$(bindir)/makebin$(EXEEXT) include clean.mk