ninenines / erlang.mk

A build tool for Erlang that just works.
https://erlang.mk
ISC License
579 stars 240 forks source link

Can't install yamerl as dependency #254

Closed jhw closed 9 years ago

jhw commented 9 years ago

https://github.com/yakaz/yamerl

'make clean' gives me

make[1]: Entering directory /home/justin/work/myapp/deps/yamerl' make[2]: *** No rule to make targetapp'. Stop. make[1]: * [all] Error 2 make[1]: Leaving directory `/home/justin/work/myapp/deps/yamerl' make: * [deps] Error 2

:-(

Am guessing there is some Makefile magic I am missing :-)

TIA

essen commented 9 years ago

Is it a recent erlang.mk? Try updating it with: "make distclean erlang-mk" and then try "make" again. It works for me with the most recent erlang.mk.

jhw commented 9 years ago

Now I have a different problem, this time with eredis

https://github.com/wooga/eredis

justin@justin-ThinkPad-X240:~/work/hfs$ make DEP cowboy DEP eredis fatal: repository 'git' does not exist

:-(

Works fine with old erlang.mk (last updated 2 months ago)

Also other dependencies seem to work fine (haven't tried yamerl yet)

essen commented 9 years ago

eredis works fine for me, can you show me your dep_eredis line?

Otherwise, both are going to be added to the index in a few minutes so you won't need the dep_eredis or dep_yamler lines anymore.

jhw commented 9 years ago

// top of Makefile

PROJECT = hfs DEPS = cowboy eredis erlcloud jsx lager dep_eredis = git https://github.com/wooga/eredis dep_erlcloud = git https://github.com/gleber/erlcloud master include erlang.mk

// continued

jhw commented 9 years ago

If you are adding stuff to the index then maybe I can ask for erlcloud as well

jhw commented 9 years ago

Oops! Missing 'master' on the eredis line. Will try that

essen commented 9 years ago

Yep that's it. And erlcloud is already in, you don't need the dep_ line. :-)

jhw commented 9 years ago

OK eredis and erlcloud now work, but not yamerl; is that because it's not part of the index yet ?

essen commented 9 years ago

What's the error? Do you have the dep_ line? I am pushing in about five minutes.

essen commented 9 years ago

Pushed. You should only need "make distclean" followed by "make" this time. dep_ line won't be needed for most of anything you want to add as a dep. Try "make pkg-list" to print the whole list.

jhw commented 9 years ago

DEP cowboy DEP eredis DEP erlcloud DEP jsx DEP lager DEP yamerl AUTO yamerl /bin/sh: 1: autoreconf: not found make: *\ [/home/justin/work/hfs/deps/yamerl] Error 127

jhw commented 9 years ago

That's having updated erlang-mk and using the following (no dep_line)

PROJECT = hfs DEPS = cowboy eredis erlcloud jsx lager yamerl include erlang.mk

essen commented 9 years ago

Ah well yes, yamerl requires autotools, like a few other packages. Install it in your OS. :-)

jhw commented 9 years ago

Got it; works; thank you very much (again)

essen commented 9 years ago

Enjoy!