12345678910111213141516171819202122232425262728293031323334353637383940 |
- PHONY := all
- include .env
- export $(shell sed 's/=.*//' .env)
- BASEDIR=$(CURDIR)
- INPUTDIR=$(BASEDIR)
- OUTPUTDIR=$(BASEDIR)/doc
- SSH_HOST=$(ENV_HOST)
- SSH_PORT=$(ENV_PORT)
- SSH_USER=$(ENV_USER)
- SSH_TARGET_DIR=$(ENV_TARGET_DIR)
- all: generate publish
- help:
- @echo ' Makefile for cv upload '
- @echo ' '
- @echo ' Usage: '
- @echo ' make publish Upload cv to server... '
- @echo ' make clean Clean cv '
- @echo ' '
- clear:
- rm -rf doc/
- find . -name "*.info" -delete
- find . -name "*.html" -delete
- generate:
- makeinfo --html doc.texi
- publish: generate
- rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)/
- test:
- env
- .PHONY: $(PHONY)
|