e5c392830e
[Thomas: taken from Mischa original github patch.] Signed-off-by: Mischa Jonker <mjonker@synopsys.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Tested-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
28 lines
725 B
Makefile
28 lines
725 B
Makefile
################################################################################
|
|
#
|
|
# jsmin
|
|
#
|
|
################################################################################
|
|
|
|
JSMIN_VERSION = a9b47554d5684a55301a2eb7ca8480b7ee7630d4
|
|
JSMIN_SITE = $(call github,douglascrockford,JSMin,$(JSMIN_VERSION))
|
|
|
|
define JSMIN_BUILD_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) jsmin
|
|
endef
|
|
|
|
define JSMIN_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0755 -D $(@D)/jsmin $(TARGET_DIR)/usr/bin/jsmin
|
|
endef
|
|
|
|
define HOST_JSMIN_BUILD_CMDS
|
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) jsmin
|
|
endef
|
|
|
|
define HOST_JSMIN_INSTALL_CMDS
|
|
$(INSTALL) -m 0755 -D $(@D)/jsmin $(HOST_DIR)/usr/bin/jsmin
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|