Skip to content
Snippets Groups Projects
Makefile 334 B
Newer Older
  • Learn to ignore specific revisions
  • Malin Freeborn's avatar
    Malin Freeborn committed
    include config/vars
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    .PHONY: all
    
    all: .check $(BOOK).pdf
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    config/vars:
    	@git submodule update --init
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    .PHONY: clean all
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    qr.tex: README.md config/vars | .switch-gls
    
    	@printf '\qrcode[height=.2\\textwidth]{$(QR_TARGET)}' > qr.tex
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    .switch-gls:
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    	@touch .switch-gls
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    $(BOOK).pdf: $(DEPS) | qr.tex
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    	@$(COMPILER) main.tex
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    	$(CLEAN)