homepage/src/ubk/ubk.mk

14 lines
480 B
Makefile
Raw Normal View History

2010-12-03 16:25:12 -07:00
PLAIN += src/ubk
TARGETS += $(DESTDIR)/src/ubk/mine-sm.jpg $(DESTDIR)/src/ubk/mine.jpg
UBK_GIT_DIR = $(HOME)/projects/ubk
UBK_PS = $(shell git --git-dir=$(UBK_GIT_DIR) ls-tree HEAD | awk '/ps$$/{print $$4;}')
UBK_PDF = $(patsubst %.ps,$(DESTDIR)/src/ubk/%.pdf,$(UBK_PS))
TARGETS += $(UBK_PDF)
2011-01-02 23:21:41 -07:00
$(DESTDIR)/src/ubk/%.pdf: $(UBK_GIT_DIR)/refs/heads/master
2010-12-03 16:25:12 -07:00
git --git-dir=$(UBK_GIT_DIR) show HEAD:$*.ps | ps2pdf - $@
2011-01-02 23:21:41 -07:00
$(DESTDIR)/src/ubk/index.html: $(UBK_GIT_DIR)/refs/heads/master