To run Makefile.tpl in OSX

0

1

I have the file here which syntax seems to be near normal make-file with parameter install.

I run unsuccessfully

make install

I get

make: *** No rule to make target `install'.  Stop.

I get the same errors also with the command gnumake in OSX.

How can you run the Makefile.tpl in OSX?

I get this to Jeremy's command

wave$ sudo make -f Makefile.tpl install
mkdir -p /help/wave;  /help/wave
/bin/sh: /help/wave: is a directory
make: *** [/help/wave] Error 126

so not working for some reason.

Léo Léopold Hertz 준영

Posted 2013-12-10T13:28:35.767

Reputation: 4 828

Answers

1

Try make -f Makefile.tpl install.

Make defaults to using Makefile and makefile, and won't realize that Makefile.tpl is the file you want it to take rules from unless you tell it with the -f option.

In general, though, a *.tpl file is going to be a template. I'd expect some sort of configure step to expand the template for your specific system and generate a Makefile (no .tpl suffix) as a result.

Jeremy W. Sherman

Posted 2013-12-10T13:28:35.767

Reputation: 606

I added the output after running your command. It gives me error 126. What does it mean in OSX case? – Léo Léopold Hertz 준영 – 2013-12-11T03:11:52.297

@Masi: That is how you run Makefile.tpl. The problem is, you don't really want to run Makefile.tpl. The error you're getting is because SETDPERMISSIONS is empty, so it tries to run a directory as a command and errors out. Please follow the instructions at http://www.physionet.org/physiotools/wfdb-darwin-quick-start.shtml, including to run ./configure before sudo make install.

– Jeremy W. Sherman – 2013-12-11T15:25:49.727