We want to put all the things into a single index.html and then uploaded. We just:
index.html: index.php $(shell find src -type f)
php index.php > index.html
upload: index.html
cp index.html /run/user/1000/gvfs/ftps:host=[website]/project/
touch upload
We dont have php in the server, we just use php to bundle all the html, js and css files into one file using php statements like this:
<style>
<?php foreach (glob("src/*.css") as $i) include $i ?>
</style>
And then we let make file generate the index.hml and we upload to our server with a cp (linux things) when changes have been made
done_