mirror of https://github.com/voidlizard/hbs2
44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
REV:=$(shell git rev-parse --short HEAD)
|
|
|
|
define make_target
|
|
$(basename $(1))-$(REV)$(suffix $(1))
|
|
endef
|
|
|
|
|
|
all: hbs2-git-problem hbs2-git-new-repo hbs2-git-doc hbs2-mailbox
|
|
|
|
.PHONY: all clean
|
|
|
|
%.pdf: %.tex
|
|
xelatex $<
|
|
xelatex $<
|
|
cp $@ $(call make_target,$@)
|
|
|
|
hbs2-git-problem: hbs2-git-problem.pdf
|
|
|
|
hbs2-git-new-repo: hbs2-git-new-repo.pdf
|
|
|
|
hbs2-git-doc: hbs2-git-doc-0.24.1.pdf
|
|
|
|
hbs2-mailbox: hbs2-mailbox.pdf
|
|
|
|
publish-hbs2-git-doc: hbs2-git-doc-0.24.1.pdf
|
|
$(eval TARGET := $(call make_target,$<))
|
|
$(eval HASH := $(shell hbs2 metadata create --hash --auto $(TARGET)))
|
|
@echo Updating $(HBS2GITDOCLWW) $(HASH)
|
|
hbs2-peer lwwref update -v $(HASH) $(HBS2GITDOCLWW)
|
|
|
|
|
|
publish-hbs2-mailbox: hbs2-mailbox.pdf
|
|
@echo not implemented yet
|
|
# $(eval TARGET := $(call make_target,$<))
|
|
# $(eval HASH := $(shell hbs2 metadata create --hash --auto $(TARGET)))
|
|
# @echo Updating $(HBS2GITDOCLWW) $(HASH)
|
|
# hbs2-peer lwwref update -v $(HASH) $(HBS2GITDOCLWW)
|
|
|
|
publish: publish-hbs2-git-doc publish-hbs2-mailbox
|
|
|
|
clean:
|
|
rm -f *.aux *.log *.nav *.out *.snm *.vrb *.toc *.pdf
|
|
|