diff options
author | P. J. McDermott <pjm@nac.net> | 2012-01-19 20:42:41 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-01-19 20:42:41 (EST) |
commit | 0728ed3752577012b8f4a8302aa23c5c63cfa2f9 (patch) | |
tree | 6c4bf6b983470ddaffaea6cfa257d8e68dc942ea | |
parent | 53fbfa7ace2a8977ab894d7ae2ebe38392fa5218 (diff) |
Fix BINDIR, support DESTDIR, and prettify output.
-rw-r--r-- | Makefile.in | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in index 1bc932b..298a7ae 100644 --- a/Makefile.in +++ b/Makefile.in @@ -23,7 +23,7 @@ INSTALL = @install@ SRCDIR = @srcdir@ PREFIX = @prefix@ -SBINDIR = @sbindir@ +BINDIR = @bindir@ .PHONY: all all: @@ -33,14 +33,22 @@ clean: .PHONY: install install: all - $(INSTALL) "$(SRCDIR)/src/opkbuild" "$(BINDIR)/opkbuild" - $(INSTALL) "$(SRCDIR)/src/oh-strip" "$(BINDIR)/oh-strip" - $(INSTALL) "$(SRCDIR)/src/oh-installfiles" "$(BINDIR)/oh-installfiles" - $(INSTALL) "$(SRCDIR)/src/oh-buildopk" "$(BINDIR)/oh-buildopk" + @printf ' INSTALL src/opkbuild\n' + @$(INSTALL) -D "$(SRCDIR)/src/opkbuild" "$(DESTDIR)/$(BINDIR)/opkbuild" + @printf ' INSTALL src/oh-strip\n' + @$(INSTALL) -D "$(SRCDIR)/src/oh-strip" "$(DESTDIR)/$(BINDIR)/oh-strip" + @printf ' INSTALL src/oh-installfiles\n' + @$(INSTALL) -D "$(SRCDIR)/src/oh-installfiles" "$(DESTDIR)/$(BINDIR)/oh-installfiles" + @printf ' INSTALL src/oh-buildopk\n' + @$(INSTALL) -D "$(SRCDIR)/src/oh-buildopk" "$(DESTDIR)/$(BINDIR)/oh-buildopk" .PHONY: uninstall uninstall: - rm "$(BINDIR)/opkbuild" - rm "$(BINDIR)/oh-strip" - rm "$(BINDIR)/oh-installfiles" - rm "$(BINDIR)/oh-buildopk" + @printf ' RM opkbuild\n' + @rm "$(DESTDIR)/$(BINDIR)/opkbuild" + @printf ' RM oh-strip\n' + @rm "$(DESTDIR)/$(BINDIR)/oh-strip" + @printf ' RM oh-installfiles\n' + @rm "$(DESTDIR)/$(BINDIR)/oh-installfiles" + @printf ' RM oh-buildopk\n' + @rm "$(DESTDIR)/$(BINDIR)/oh-buildopk" |