Skip to content
Snippets Groups Projects
Select Git revision
  • f4c8040256b2e54525efa3441f8b10a1e87a0357
  • master default protected
  • development
  • fix-missing-weatherdata
  • fix-eichsfeld-weather
  • marco-development
  • marco/dev-aquacrop
  • precompile-statements
  • precompile-tools
  • tmp-faster-loading
  • skylark
  • testsuite
  • code-review
  • v0.7.0
  • v0.6.1
  • v0.6.0
  • v0.5.5
  • v0.5.4
  • v0.5.3
  • v0.5.2
  • v0.2
  • v0.3.0
  • v0.4.1
  • v0.5
24 results

aquacrop.jl

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Makefile 1.50 KiB
    # -----------------------------------------------------------------------------
    # settings
    # -----------------------------------------------------------------------------
    
    # do not use spaces here, instead use either
    # - dashes, as in my-awesome-title, or
    # - underscores, as in my_awesome_title
    TITLE = title
    
    # -----------------------------------------------------------------------------
    # pandoc configuration
    # -----------------------------------------------------------------------------
    
    PANDOC = pandoc
    
    PANDOCFLAGS = \
    	--fail-if-warnings \
    	--standalone \
    	--filter pandoc-citeproc \
    	--pdf-engine=xelatex \
    
    # -----------------------------------------------------------------------------
    # sources
    # -----------------------------------------------------------------------------
    
    SOURCES_CSV = $(wildcard *.csv)
    SOURCES_MD = $(sort $(wildcard chapter-*.md))
    
    # -----------------------------------------------------------------------------
    # targets
    # -----------------------------------------------------------------------------
    
    default: all
    
    all: $(TITLE).pdf
    
    SUBDIRS = \
    	img \
    
    $(SUBDIRS):
    	$(MAKE) -C $@
    
    subdirs: $(SUBDIRS)
    
    $(TITLE).pdf: $(SUBDIRS) metadata.yml $(SOURCES_CSV) $(SOURCES_MD)
    	$(PANDOC) $(PANDOCFLAGS) -o $@ metadata.yml $(SOURCES_MD)
    
    check: spellcheck
    
    spellcheck:
    	mdspell --en-us -anrx $(SOURCES_MD)
    
    title:
    	@echo $(TITLE)
    
    clean:
    	@for dir in $(SUBDIRS); do \
    	  $(MAKE) -C $$dir $@; \
    	done
    	rm -f $(TITLE).pdf
    
    .PHONY: \
    	all \
    	check \
    	clean \
    	default \
    	subdirs \
    	title \
    	$(SUBDIRS) \