[Buildroot] [git commit master] file: bump version and migrate to autotargets

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Jun 9 06:35:20 UTC 2010


Hello,

On Tue, 8 Jun 2010 23:32:40 +0200
Gustavo Zacarias <gustavo at zacarias.com.ar> wrote:

> +$(FILE_TARGET_UNINSTALL):
> +	$(call MESSAGE,"Uninstalling")
> +	$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(FILE_DIR)
> +	rm -f $(TARGET_DIR)/usr/lib/libmagic.*
> +	rm -f $(FILE_TARGET_INSTALL_TARGET) $(FILE_HOOK_POST_INSTALL)

Ah, I didn't catch this at the review phase. I'd like to get rid of
these « old style » way of overloading operations. You can do the same
in a new style way with:

define FILE_UNINSTALL_TARGET_CMDS
	$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(@D)
	rm -f $(TARGET_DIR)/usr/lib/libmagic.*
endef

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list