GNU Makefile to FreeBSD Makefile

blubee blubeeme gurenchan at gmail.com
Mon Jul 31 10:00:47 UTC 2017


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,


More information about the freebsd-ports mailing list