mmcp-19-gerstner

Computational Model of Unsteady Hydromechanics of Large Amplitude Gerstner Waves
git clone https://git.igankevich.com/mmcp-19-gerstner.git
Log | Files | Refs

Makefile (1216B)


      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 NAME = mmcp-19-gerstner
     12 
     13 all: build/$(NAME).pdf
     14 all: build/$(NAME).zip
     15 all: build/$(NAME)-grayscale.pdf
     16 
     17 build/$(NAME).pdf: build
     18 build/$(NAME).pdf: main.tex
     19 	@echo "   LATEX $<"
     20 	@-$(LATEXMK) $(FLAGS) -f $<
     21 	@cp build/main.pdf $@
     22 
     23 build/$(NAME)-grayscale.pdf: build
     24 build/$(NAME)-grayscale.pdf: build/$(NAME).pdf
     25 	gs \
     26 		-sOutputFile=$@ \
     27 		-sDEVICE=pdfwrite \
     28 		-sColorConversionStrategy=Gray \
     29 		-dProcessColorModel=/DeviceGray \
     30 		-dCompatibilityLevel=1.4 \
     31 		-dNOPAUSE \
     32 		-dBATCH \
     33 		$<
     34 
     35 build/$(NAME).zip: Makefile
     36 build/$(NAME).zip: main.tex
     37 build/$(NAME).zip: refs.bib
     38 build/$(NAME).zip: webofc.cls
     39 build/$(NAME).zip: woc.bst
     40 build/$(NAME).zip: graphics/01-gerstner.png
     41 build/$(NAME).zip: graphics/02-gerstner.png
     42 build/$(NAME).zip: graphics/03-wind-wave.png
     43 build/$(NAME).zip: graphics/05-wind-wave.png
     44 build/$(NAME).zip: graphics/06-group-wave.png
     45 build/$(NAME).zip: graphics/07-exp-1.png
     46 build/$(NAME).zip: graphics/waves-01.png
     47 	@rm -f $@
     48 	zip $@ $^
     49 
     50 build:
     51 	@mkdir -p build
     52 
     53 clean:
     54 	@rm -rf build
     55 
     56 .PHONY: build clean all
     57