tools/thermal: tmon: fixed the 'make install' command
To install tmon we issue "make install" which produces bellow error. root@odroidxu3:/usr/src/odroidxu3-4.y-testing/tools/thermal/tmon# make install mkdir -p /usr/bin install -m 755 -p "tmon" "/usr/bin/tmon" mkdir -p / install -m 644 -p "" "/" install: cannot stat ‘’: No such file or directory make: [install] Error 1 (ignored) Signed-off-by: Anand Moon <linux.amoon@gmail.com> Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
parent
0d0a2bf6ed
commit
b100e77f17
@ -12,10 +12,6 @@ TARGET=tmon
|
|||||||
INSTALL_PROGRAM=install -m 755 -p
|
INSTALL_PROGRAM=install -m 755 -p
|
||||||
DEL_FILE=rm -f
|
DEL_FILE=rm -f
|
||||||
|
|
||||||
INSTALL_CONFIGFILE=install -m 644 -p
|
|
||||||
CONFIG_FILE=
|
|
||||||
CONFIG_PATH=
|
|
||||||
|
|
||||||
# Static builds might require -ltinfo, for instance
|
# Static builds might require -ltinfo, for instance
|
||||||
ifneq ($(findstring -static, $(LDFLAGS)),)
|
ifneq ($(findstring -static, $(LDFLAGS)),)
|
||||||
STATIC := --static
|
STATIC := --static
|
||||||
@ -38,13 +34,9 @@ valgrind: tmon
|
|||||||
install:
|
install:
|
||||||
- mkdir -p $(INSTALL_ROOT)/$(BINDIR)
|
- mkdir -p $(INSTALL_ROOT)/$(BINDIR)
|
||||||
- $(INSTALL_PROGRAM) "$(TARGET)" "$(INSTALL_ROOT)/$(BINDIR)/$(TARGET)"
|
- $(INSTALL_PROGRAM) "$(TARGET)" "$(INSTALL_ROOT)/$(BINDIR)/$(TARGET)"
|
||||||
- mkdir -p $(INSTALL_ROOT)/$(CONFIG_PATH)
|
|
||||||
- $(INSTALL_CONFIGFILE) "$(CONFIG_FILE)" "$(INSTALL_ROOT)/$(CONFIG_PATH)"
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(DEL_FILE) "$(INSTALL_ROOT)/$(BINDIR)/$(TARGET)"
|
$(DEL_FILE) "$(INSTALL_ROOT)/$(BINDIR)/$(TARGET)"
|
||||||
$(CONFIG_FILE) "$(CONFIG_PATH)"
|
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
find . -name "*.o" | xargs $(DEL_FILE)
|
find . -name "*.o" | xargs $(DEL_FILE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user