mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-15 00:03:39 +08:00
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
648 B
Makefile
28 lines
648 B
Makefile
#############################################################
|
|
#
|
|
# mrouted
|
|
#
|
|
#
|
|
#############################################################
|
|
MROUTED_VERSION = 3.9.4
|
|
MROUTED_SOURCE = mrouted-$(MROUTED_VERSION).tar.bz2
|
|
MROUTED_SITE = http://ftp.vmlinux.org/pub/People/jocke/mrouted
|
|
|
|
define MROUTED_BUILD_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define MROUTED_INSTALL_TARGET_CMDS
|
|
$(MAKE) prefix=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install
|
|
endef
|
|
|
|
define MROUTED_UNINSTALL_TARGET_CMDS
|
|
$(MAKE) prefix=/usr DESTDIR=$(TARGET_DIR) -C $(@D) uninstall
|
|
endef
|
|
|
|
define MROUTED_CLEAN_CMDS
|
|
$(MAKE) -C $(@D) clean
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS))
|