Ask coding questions

← Back to all posts
Phony and Makefile.
IzanLarumbe (29)

Hi guys, so i have seen chromiun browser working on replit (GFX introduction at the blog) and i saw that there's a function named "run" and then down there appears chromiun-browser -- no-sandbox repl.it/gfx or something.

I would like a list of programs that work on makefile :3 (SInce it looks like a good emulator)

Answered by SPQR (450) [earned 5 cycles]
View Answer
Commentshotnewtop
SPQR (450)

You can run pretty much anything that runs on Ubuntu using the makefile. Just use install-pkg instead of sudo apt-get install. It uses Bash syntax btw.

IzanLarumbe (29)

@SPQR Could you give an example? I am very bad at makefile and bash.

IzanLarumbe (29)

@SPQR Maybe like this?

sudo apt-get install firefox
IzanLarumbe (29)

@SPQR I found VS Code.

Where i should put this:

sudo apt updatesudo apt install software-properties-common apt-transport-https wget

In the IDE or in the console?

SPQR (450)

@IzanLarumbe like i said, you would use install-pkg firefox. And might I ask why you want to install VS code on replit? Wouldn't you rather just use replit?
Also, you'd put it in the IDE under run:, indented once.

IzanLarumbe (29)

@SPQR Ok, thanks. Also visual studio code was just an example. Not really going to use it. I just want to make sure it works tough! Anyways thanks.

IzanLarumbe (29)

@SPQR
Any help? The output doesn't show up tough...

SPQR (450)

@a5rocks @IzanLarumbe yep. You've installed firefox but you have to run it to see any output. You can just add the firefox on the line below and you should be set.

SPQR (450)

@IzanLarumbe If you want an example of something you can run using makefile, i have this:
https://repl.it/@SPQR/DOOM-1993

IzanLarumbe (29)

@SPQR A last question:
Does Sudo apt get work like install-package?
Like if there's an app that uses sudo apt it would work if i used install package?

' ' '
sudo apt-get install APP
' ' '

' ' '
install-package SAMEAPP
' ' '

SPQR (450)

@IzanLarumbe Yeah. sudo apt-get just means to install the package in question as root, aka superuser (hence the su in sudo.) Since we don't have root access as average repl.it users, we use install-pkg to temporarily install the package in a subdirectory for the time that the program is running. That's why the program takes so long to start up every time, it's because it's reinstalling firefox every time the program is run.

But to answer your question, in general, yes, it would work. You might have to find it in the directory in which it's installed to run it, though.

IzanLarumbe (29)

@SPQR thx. I tried with the brave app. It doesn't seem to work. Like there's no command after its download... sad :(