iccsa-20-wind

Virtual Testbed: Simulation of Air Flow Around Ship Hull and Its Effect on Ship Motions
git clone https://git.igankevich.com/iccsa-20-wind.git
Log | Files | Refs

Makefile (2679B)


      1 LATEXMK = env max_print_line=1000 texfot --no-stderr --quiet latexmk
      2 
      3 FLAGS = \
      4 	-8bit \
      5 	-interaction=nonstopmode \
      6 	-output-directory=build \
      7 	-pdf \
      8 	-bibtex \
      9 	-shell-escape
     10 
     11 all: build/main.pdf
     12 all: build/slides.pdf
     13 all: build/254-Gankevich-Air-flow-around-ship.pdf
     14 all: build/iccsa-20-wind-slides.pdf
     15 
     16 build/main.pdf: build/inkscape/law-of-reflection.eps
     17 build/main.pdf: build/gnuplot/verification.eps
     18 build/main.pdf: build/gnuplot/velocity.eps
     19 build/main.pdf: build/gnuplot/openmp.svg
     20 build/main.pdf: build/ships/aurora.eps
     21 build/main.pdf: build/ships/diogen.eps
     22 build/main.pdf: build/ships/micw.eps
     23 build/main.pdf: main.tex
     24 build/main.pdf:
     25 	@echo "   LATEX $<"
     26 	@-$(LATEXMK) $(FLAGS) -f main.tex
     27 
     28 build/slides.pdf: build/gnuplot/aurora.eps
     29 build/slides.pdf: build/gnuplot/cylinder-1.eps
     30 build/slides.pdf: build/gnuplot/cylinder-2.eps
     31 build/slides.pdf: build/gnuplot/openmp.svg
     32 build/slides.pdf: build/gnuplot/ship-roll.eps
     33 build/slides.pdf: build/gnuplot/ship-velocity.eps
     34 build/slides.pdf: build/inkscape/law-of-reflection.eps
     35 build/slides.pdf: build/ships/aurora.eps
     36 build/slides.pdf: build/ships/diogen.eps
     37 build/slides.pdf: build/ships/micw.eps
     38 build/slides.pdf: slides.tex
     39 	@echo "   LATEX $<"
     40 	@-$(LATEXMK) $(FLAGS) -xelatex -f $<
     41 
     42 build/254-Gankevich-Air-flow-around-ship.pdf: build/slides.pdf
     43 	cp $< $@
     44 
     45 build/iccsa-20-wind-slides.pdf: build/slides.pdf
     46 	cp $< $@
     47 
     48 build/%.eps: build/%.svg
     49 	inkscape -z --export-eps=$@ $<
     50 
     51 build/inkscape/%.eps: graphics/inkscape/%.svg
     52 	@mkdir -p build/inkscape
     53 	inkscape -z --export-eps=$@ $<
     54 
     55 build/gnuplot/%.svg: gnuplot/%.gnuplot
     56 	@mkdir -p build/gnuplot
     57 	gnuplot -d $<
     58 
     59 build/gnuplot/cylinder-1.svg build/gnuplot/cylinder-2.svg: gnuplot/cylinder.gnuplot
     60 	@mkdir -p build/gnuplot
     61 	gnuplot -d $<
     62 
     63 build/gnuplot/ship-roll.svg build/gnuplot/ship-velocity.svg: gnuplot/ship-roll-velocity.gnuplot
     64 	@mkdir -p build/gnuplot
     65 	gnuplot -d $<
     66 
     67 build/ships/diogen.svg: ships/diogen.gnuplot gnuplot/vessel.gnuplot
     68 	@mkdir -p build/ships
     69 	gnuplot -d -c gnuplot/vessel.gnuplot $< $@ Diogen
     70 
     71 build/ships/aurora.svg: ships/aurora.gnuplot gnuplot/vessel.gnuplot
     72 	@mkdir -p build/ships
     73 	gnuplot -d -c gnuplot/vessel.gnuplot $< $@ Aurora
     74 
     75 build/ships/micw.svg: ships/micw.gnuplot gnuplot/vessel.gnuplot
     76 	@mkdir -p build/ships
     77 	gnuplot -d -c gnuplot/vessel.gnuplot $< $@ MICW
     78 
     79 zip: build/main.zip
     80 
     81 build/main.zip: build/inkscape/*.eps build/gnuplot/*.eps build/ships/*eps main.tex
     82 	@mkdir -p build
     83 	zip --filesync build/main.zip $^
     84 
     85 build:
     86 	@mkdir -p build
     87 
     88 clean:
     89 	@rm -rf build
     90 
     91 diff:
     92 	@python3 python/wind-diff.py
     93 
     94 build/gnuplot/velocity.svg: gnuplot/wind-aurora.dat
     95 build/gnuplot/roll.svg: gnuplot/wind-aurora.dat
     96 
     97 .PHONY: build clean diff zip