Xmake is an alternative to Make
//this is a comment it will be ignored
$main
echo this is a command
$other_function
!EXIT
$another_function
!PAUSE
To define a function use a $
sign to define a function like this
$Function_1
Code goes here for function 1
$Function_2
Code goes here for function 2
Anything that has no !
,//
or $
is a command that is sent to the OS
An !
is a command that is sent to Xmake
This will pause the Xmake script untill a enter key is pressed
This stops the program
A comment is made by adding //
to the start of the line
//This is a comment
This is not a comment
To Compile you need Visual Studio 2022
Now open the installer and check Desktop development with C++
Now open the Visual Studo command prompt
Now check if cl
is installed
Now clone this repo https://github.com/awesomelewis2007/Xmake
.
Now change diectory over to the Xmake
folder
To compile run cl Xmake.cpp function.cpp
To run the compiled app run ./Xmake.exe
To compile for linux you need g++
to install g++
run
audo apt update
sudo apt install build-essential
sudo apt install g++
to compile run g++ Xmake.cpp function.cpp