tavinus / pdfScale

Bash Script to Scale and Resize PDFs using Ghostscript
MIT License
246 stars 37 forks source link

./Makefile doesn't work #12

Closed Cellomaster87 closed 6 years ago

Cellomaster87 commented 6 years ago

Running ./Makefile gives me the following output and then, of course, nothing works.

Dragging / dropping the pdfscale.sh manually into the usr/local/bin directory makes it work but I guess this is not intended.

screen shot 2018-11-04 at 12 31 25
tavinus commented 6 years ago

Hi,

That is not really how you run a Makefile (it is not an executable file).
You should just call make <target>.

The make utility reads the file Makefile for its targets
(but there is no need to reference the file directly).

As mentioned in the Readme.md, just call the 'install' target:

sudo make install

You will need to have make installed
(eg. sudo apt-get install make)


Or you can install without make using the -i, or --install option, as in:

./pdfScale.sh --install

Edit: Copying / Setting to executable is indeed all that is needed to install, since pdfScale.sh is a single file.

Cheers!
Gus

Cellomaster87 commented 6 years ago

Thank you very much!

Michele Galvagno

michicello@gmail.com Tel: +39 327 584 64 64 On 7 Nov 2018, 08:30 +0100, Gustavo Arnosti Neves notifications@github.com, wrote:

Hi, That is not really how you run a Makefile (it is not an executable file). You should just call make . The make utility reads the file Makefile for its targets. As mentioned in the Readme.md, just call: sudo make install You will need to have make installed (eg. sudo apt-get install make) Or you can do without make using the -i, or --install option, as in: ./pdfScale.sh --install Cheers! Gus — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

tavinus commented 6 years ago

No worries mate!
Cheers!
Gus