Commit 0d5cf75d authored by Thomas Petazzoni's avatar Thomas Petazzoni
Browse files

less: use correct step override method

parent edf47fc6
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -8,15 +8,12 @@ LESS_VERSION = 436
LESS_SITE = http://www.greenwoodsoftware.com/less
LESS_DEPENDENCIES = ncurses

$(eval $(call AUTOTARGETS,package,less))

$(LESS_TARGET_INSTALL_TARGET):
	$(call MESSAGE,"Installing to target")
	$(INSTALL) -m 0755 $(LESS_DIR)/less \
		$(TARGET_DIR)/usr/bin/less
	touch $@
define LESS_INSTALL_TARGET_CMDS
	$(INSTALL) -m 0755 $(@D)/less $(TARGET_DIR)/usr/bin/less
endef

$(LESS_TARGET_UNINSTALL):
	$(call MESSAGE,"Uninstalling")
define LESS_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/usr/bin/less
	rm -f $(LESS_TARGET_INSTALL_TARGET) $(LESS_HOOK_POST_INSTALL)
endef

$(eval $(call AUTOTARGETS,package,less))