0849e8193e
Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
28 lines
631 B
Makefile
28 lines
631 B
Makefile
#############################################################
|
|
#
|
|
# sredird
|
|
#
|
|
#############################################################
|
|
|
|
SREDIRD_VERSION = 2.2.1-1.1
|
|
SREDIRD_SOURCE = sredird_$(SREDIRD_VERSION).tar.gz
|
|
SREDIRD_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/s/sredird
|
|
|
|
define SREDIRD_BUILD_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define SREDIRD_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/sredird $(TARGET_DIR)/usr/sbin/sredird
|
|
endef
|
|
|
|
define SREDIRD_UNINSTALL_TARGET_CMDS
|
|
rm -f $(TARGET_DIR)/usr/sbin/sredird
|
|
endef
|
|
|
|
define SREDIRD_CLEAN_CMDS
|
|
rm -f $(@D)/sredird
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS))
|