fbset: misc cleanup
Use install -D so it doesn't fail if usr/sbin doesn't exist, remove unneeded stripping and move target cleanup to _UNINSTALL_TARGET_CMDS. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
b850ce811f
commit
789f61379a
|
@ -6,20 +6,20 @@
|
||||||
FBSET_VERSION = 2.1
|
FBSET_VERSION = 2.1
|
||||||
FBSET_SOURCE = fbset-$(FBSET_VERSION).tar.gz
|
FBSET_SOURCE = fbset-$(FBSET_VERSION).tar.gz
|
||||||
FBSET_SITE = http://users.telenet.be/geertu/Linux/fbdev
|
FBSET_SITE = http://users.telenet.be/geertu/Linux/fbdev
|
||||||
FBSET_BINARY = fbset
|
|
||||||
FBSET_TARGET_BINARY = usr/sbin/$(FBSET_BINARY)
|
|
||||||
|
|
||||||
define FBSET_BUILD_CMDS
|
define FBSET_BUILD_CMDS
|
||||||
$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define FBSET_INSTALL_TARGET_CMDS
|
define FBSET_INSTALL_TARGET_CMDS
|
||||||
$(INSTALL) -m 755 $(@D)/$(FBSET_BINARY) $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
|
$(INSTALL) -D -m 755 $(@D)/fbset $(TARGET_DIR)/usr/sbin/fbset
|
||||||
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
|
endef
|
||||||
|
|
||||||
|
define FBSET_UNINSTALL_TARGET_CMDS
|
||||||
|
rm -f $(TARGET_DIR)/usr/sbin/fbset
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define FBSET_CLEAN_CMDS
|
define FBSET_CLEAN_CMDS
|
||||||
rm -f $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
|
|
||||||
-$(MAKE) -C $(@D) clean
|
-$(MAKE) -C $(@D) clean
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user