Re: Makefiles guidance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now, in Makefile.am Rules are a bit different than regular makefile?


On Fri, Jun 15, 2018 at 1:11 AM, Bob Friesenhahn <
bfriesen@xxxxxxxxxxxxxxxxxxx> wrote:

> On Fri, 15 Jun 2018, Anmol Mishra wrote:
>
> https://pastebin.com/gDiMCEpC
>>
>> https://github.com/Shopify/pyoozie/blob/master/Makefile
>>
>> What actually is my_cmd.python.2 and my_cmd.python.3 really do.
>> In these, What actually is happening in these lines?
>>
>>   1. python_version_full := $(wordlist 2,4,$(subst ., ,$(shell python
>>   --version 2>&1)))
>>   2. python_version_major := $(word 1,${python_version_full}
>>
>
> This is GNU make specific syntax (not portable) and so you should consult
> the GNU make manual.
>
> As a quick check you can add something this at the bottom of the Makefile
> to see what these variables end up being defined to:
>
> test_vars:
>         echo $(python_version_full)
>         echo $(python_version_major)
>
> and then do
>
> make test_vars
>
> to see what gets printed.
>
> Bob
> --
> Bob Friesenhahn
> bfriesen@xxxxxxxxxxxxxxxxxxx, http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
>



-- 
[image: Developer in progress]
Anmol Mishra
Student | Developer in progress
M: +91 9990752180 <+91+9990752180>
E: anmolmishra.jiit@xxxxxxxxx
[image: facebook] <https://www.facebook.com/1453830764744514> [image:
twitter] <https://twitter.com/_octamois> [image: linkedin]
<https://www.linkedin.com/in/anmol-mishra-720219136/> [image: github]
<https://github.com/octamois> [image: snapchat-ghost]
<https://www.snapchat.com/add/octamois>
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux