iccsa-20-waves

Virtual Testbed: Simulation of Ocean Wave Reflection from the Ship Hull
git clone https://git.igankevich.com/iccsa-20-waves.git
Log | Files | Refs

Makefile (2423B)


      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/287-Gankevich-Ocean-wave-reflection.pdf
     14 all: build/iccsa-20-waves-slides.pdf
     15 
     16 build/main.pdf: build/gnuplot/openmp.svg
     17 build/main.pdf: build/gnuplot/surface.eps
     18 build/main.pdf: build/gnuplot/surface.svg
     19 build/main.pdf: build/ships/aurora.eps
     20 build/main.pdf: build/ships/diogen.eps
     21 build/main.pdf: build/ships/micw.eps
     22 build/main.pdf: main.tex
     23 build/main.pdf:
     24 	@echo "   LATEX $<"
     25 	@-$(LATEXMK) $(FLAGS) -f main.tex
     26 
     27 build/slides.pdf: build/gnuplot/openmp.svg
     28 build/slides.pdf: build/gnuplot/aurora.eps
     29 build/slides.pdf: build/gnuplot/aurora-non-bare.eps
     30 build/slides.pdf: build/gnuplot/diogen.eps
     31 build/slides.pdf: build/gnuplot/micw.eps
     32 build/slides.pdf: build/gnuplot/surface-with-ship.eps
     33 build/slides.pdf: build/gnuplot/surface-with-ship-3d.eps
     34 build/slides.pdf: build/ships/aurora.eps
     35 build/slides.pdf: build/ships/diogen.eps
     36 build/slides.pdf: build/ships/micw.eps
     37 build/slides.pdf: build/inkscape/diffraction.eps
     38 build/slides.pdf: slides.tex
     39 	@echo "   LATEX $<"
     40 	@-$(LATEXMK) $(FLAGS) -xelatex -f $<
     41 
     42 build/287-Gankevich-Ocean-wave-reflection.pdf: build/slides.pdf
     43 	cp $< $@
     44 
     45 build/iccsa-20-waves-slides.pdf: build/slides.pdf
     46 	cp $< $@
     47 
     48 build/%.eps: build/%.svg
     49 	inkscape -z --export-eps=$@ $<
     50 
     51 build/gnuplot/%.svg: gnuplot/%.gnuplot
     52 	@mkdir -p build/gnuplot
     53 	gnuplot -d $<
     54 
     55 build/inkscape/%.eps: inkscape/%.svg
     56 	@mkdir -p build/inkscape
     57 	inkscape -z --export-eps=$@ $<
     58 
     59 build/gnuplot/diogen.svg build/gnuplot/aurora.svg build/gnuplot/micw.svg: ships/diogen.gnuplot gnuplot/ships.gnuplot
     60 	@mkdir -p build/gnuplot
     61 	gnuplot -d -c gnuplot/ships.gnuplot $<
     62 
     63 build/ships/diogen.svg: ships/diogen.gnuplot gnuplot/vessel.gnuplot
     64 	@mkdir -p build/ships
     65 	gnuplot -d -c gnuplot/vessel.gnuplot $< $@ Diogen
     66 
     67 build/ships/aurora.svg: ships/aurora.gnuplot gnuplot/vessel.gnuplot
     68 	@mkdir -p build/ships
     69 	gnuplot -d -c gnuplot/vessel.gnuplot $< $@ Aurora
     70 
     71 build/ships/micw.svg: ships/micw.gnuplot gnuplot/vessel.gnuplot
     72 	@mkdir -p build/ships
     73 	gnuplot -d -c gnuplot/vessel.gnuplot $< $@ MICW
     74 
     75 build/main.zip: build/gnuplot/*.eps build/ships/*eps main.tex
     76 	@mkdir -p build
     77 	zip --filesync build/main.zip $^
     78 
     79 zip: build/main.zip
     80 
     81 build:
     82 	@mkdir -p build
     83 
     84 clean:
     85 	@rm -rf build
     86 
     87 .PHONY: build clean zip