Hi, Pietro.

On 17 May 2013 23:36, Pietro Paolini <pulsarpie...@aol.com> wrote:
> Hello all,
> I was looking at the Makefile in the top dir of OpenWRT and I don't 
> understand the meaning of these lines :
>
> $(toolchain/stamp-install): $(tools/stamp-install)
> $(target/stamp-compile): $(toolchain/stamp-install) $(tools/stamp-install) 
> $(BUILD_DIR)/.prepared
> $(package/stamp-compile): $(target/stamp-compile) $(package/stamp-cleanup)
> $(package/stamp-install): $(package/stamp-compile)
> $(target/stamp-install): $(package/stamp-compile) $(package/stamp-install)
>
> I used the top makefile but this is a generic question, where  are these 
> "variables/target" defined ? what I don't understand is if these are target, 
> variables … can someone give me some light ?

For what i know, these variables are defined by calling to `stampfile`
in `include/subdir.mk` from Makefiles like `target/Makefile`,
`package/Makefile` etc. Their values are basically just paths of blank
files with timestamps to relieve make from doing repeated work.

For example, After calling from `target/Makefile`, we should have 3 files:

        
staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.target_{prereq,compile,install}

>
> Thanks,
> Pietro.
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to