diff --git a/Makefile b/Makefile index bd6be8d..26c1799 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,30 @@ -build: +all: make clean mkdir -p build - cp -r ./public/* ./build - cp ./thesis/main.pdf ./build/mt-polygon-simplification-2019.pdf + make thesis -B + make source-code-bundle -B + make public-files -B + make benchmarking-build -B + +benchmarking-build: cd ./benchmarking && npm install && npm run build cp -r ./benchmarking/dist ./build/benchmarking - cd ./compare-algorithms && npm install && npm run build - cp -r ./compare-algorithms/dist ./build/polygon-simplification + +thesis: + cp ./thesis/main.pdf ./build/mt-polygon-simplification.pdf + +public-files: + cp -r ./public/* ./build + +source-code-bundle: + mkdir -p build + cd .. && tar -czf /tmp/mt-polygon-simplification.tar.gz \ + --exclude-from mt-polygon-simplification/.gitignore \ + --exclude mt-polygon-simplification/.git \ + --exclude mt-polygon-simplification/build \ + --exclude mt-polygon-simplification/deploy.sh \ + mt-polygon-simplification + mv /tmp/mt-polygon-simplification.tar.gz build/ clean: - rm -rf build \ No newline at end of file + rm -rf build diff --git a/deploy.sh b/deploy.sh index 8fcea79..2b10fa9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,2 +1,2 @@ -make -B +make all -B rsync -r ./build/ root@mt.melch.pro:/var/www/mt