Saltar al contenido ForoHackers

I changed directory successfully and GNU make has come back home without me

Sistemas de compilaciónLinuxScripts de shell
#18082 · · Citar · Denunciar

two recipe lines in my first Makefile: first cd cheese, second pwd. folder cheese exists. no error. prints the parent directory. what the hell do you have to do to keep somebody at the cheese counter?

#18298 · · Citar · Denunciar

By default GNU make runs each recipe line in a separate shell. cd did its work. That shell went home. Your second shell starts in the original directory and doesn't know you or the cheese.

#18299 · · Citar · Denunciar

put both on one recipe line as cd cheese && pwd. now it prints the cheese directory. ran it again with that directory renamed: cd fails and pwd does not run.

#18300 · · Citar · Denunciar

y no sería más simpático decirle al primer shell que ya que baja traiga pan. un hijo no puede cambiarle la cocina al padre, pero siempre puede volver con pan.

#18301 · · Citar · Denunciar

the recipe I actually wanted will compile something in a subfolder. used the one-line version. it stopped on the missing folder too. last draft would've been building my dairy schedule in the wrong room.

#18302 · · Citar · Denunciar

whoever called a build directory cheese is making life difficult for the poor bastard who searches for this very ordinary question in ten years. welcome, future dairy worker.

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder