kumquat-buildroot/package/distcc/distcc.mk
Thomas Petazzoni 300f9c9c9d package: remove useless arguments from AUTOTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
AUTOTARGETS 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>
2011-09-29 23:12:27 +02:00

24 lines
637 B
Makefile

#############################################################
#
# distcc
#
#############################################################
DISTCC_VERSION:=2.18.3
DISTCC_SOURCE:=distcc-$(DISTCC_VERSION).tar.bz2
DISTCC_SITE:=http://distcc.samba.org/ftp/distcc/
DISTCC_CONF_OPT = --with-included-popt --without-gtk --without-gnome
define DISTCC_INSTALL_TARGET_CMDS
install -D $(@D)/distccd $(TARGET_DIR)/usr/bin/distccd
install -D $(@D)/distcc $(TARGET_DIR)/usr/bin/distcc
endef
define DISTCC_CLEAN_CMDS
rm -f $(TARGET_DIR)/usr/bin/distcc
rm -f $(TARGET_DIR)/usr/bin/distccd
-$(MAKE) -C $(@D) clean
endef
$(eval $(call AUTOTARGETS))