Created
February 3, 2020 23:11
-
-
Save dzava/8f5f3e33091c023863bd22f829880c58 to your computer and use it in GitHub Desktop.
RoR makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DBUILD_REDIST_FOLDER=ON . | |
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_REDIST_FOLDER=ON . | |
ninja | |
cp /usr/lib/x86_64-linux-gnu/libzzip-0.so.13 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libfreeimage.so.3 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libjpegxr.so.0 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libjxrglue.so.0 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libraw.so.15 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libwebp.so.5 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libwebpmux.so.1 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libjasper.so.1 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libHalf.so.12 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libIex-2_2.so.12 ./redist/lib/ | |
cp /lib/x86_64-linux-gnu/libpng12.so.0 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libIlmThread-2_2.so.12 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libCg.so ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libjpeg.so.8 ./redist/lib/ | |
cp /usr/lib/x86_64-linux-gnu/libXaw.so.7 ./redist/lib/ | |
ninja zip_and_copy_resources | |
ninja install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DEFAULT_GOAL := run | |
runonly: | |
cd ./build/ && ./RunRoR -map simple2 -truck UnlimitedTrophyTruck.truck -enter | |
run: download | |
cd ./build/ && ./RunRoR -map simple2 -truck UnlimitedTrophyTruck.truck -enter | |
download: build | |
rsync -arzz vbox:/root/rigs-of-rods/redist/ ./build/ | |
build: upload | |
rsync -ar ./build.sh vbox:/root/rigs-of-rods/ | |
ssh -tt vbox 'cd rigs-of-rods; ./build.sh' | |
configure: | |
ssh -tt vbox 'cd rigs-of-rods; cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_REDIST_FOLDER=ON .' | |
upload: | |
rsync --exclude=.git -arzz ./rigs-of-rods/ vbox:/root/rigs-of-rods/ | |
clean: | |
rm -rf ./build | |
startvm: | |
vboxmanage startvm ubuntu | |
stopvm: | |
vboxmanage controlvm ubuntu acpipowerbutton | |
.PHONY: runonly run download build upload clean startvm stopvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment