Date: Mon, 31 Jul 2017 18:00:46 +0800 From: blubee blubeeme <gurenchan@gmail.com> To: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: GNU Makefile to FreeBSD Makefile Message-ID: <CALM2mEmBn7vN8pRn--doJNscYFvJrpHcRsrw6r_ZYrGkft8%2B5A@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hey guys I am trying to port some software to FreeBSD it uses GNU Makefile convention that uses these variables all over the place. https://stackoverflow.com/questions/3220277/what-do-the-makefile-symbols-and-mean I understand what they mean all: library.cpp main.cpp - $@ evaluates to all - $< evaluates to library.cpp - $^ evaluates to library.cpp main.cpp The question is, how do I remove those to just use the proper filenames? They are in the Makefile.am, here's an example line. src=`echo $< | sed 's,^.*/,,; s,\.dat$$,,'`; \ dst=`echo $@ | sed 's,^.*/,,; s,\.dat$$,,'`; \ Does anyone have experience with this that can give me some guidance on this? Best,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEmBn7vN8pRn--doJNscYFvJrpHcRsrw6r_ZYrGkft8%2B5A>