Skip to content
Advertisement

wondering what this makefile means

So I was browsing repl.it and saw that someone made it possible to run firefox in the repl window. There was a file called Makefile and it had this code in it. I’m wondering what it means and where they are getting Firefox from.

JavaScript

Then there is a python file called launch.py

JavaScript

I’m genuinely curious where firefox is coming from and if I can substitute for another app like discord. Aswell as what is makefile Here is a link to the repl where you can hten view the code. https://replit.com/@Jackerin0/Firefox-fixed-originally-made-by-polygott?v=1

Advertisement

Answer

Makefile is a utility for writing and executing series of command-line instructions for things like compiling code, testing code, formatting code, running code, downloading/uploading data, cleaning your directory etc … Basically, it helps automate your dev workflows into simple commands (make run, make test, make clean).

Here’s what it does in this case:

JavaScript

So when you type make run in terminal, it will run the install-pkg and python3 commands.

Then in the python file:

JavaScript

The nohup file is created when running a background task. Not sure why it’s being created in this context (maybe because of something specific to firefox or repl), or why you need to delete it.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement