-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (21 loc) · 717 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: all manifest dist doc
ALL_T_HTML:=$(shell ls -1 slides/*.slides | perl -pe 's/slides$$/xul/;s/^.*\///')
all: $(ALL_T_HTML)
manifest: clean
find . -type f | perl -pe 's/..//' | grep -v ^.git > MANIFEST
dist: doc manifest META.yml
H=`pwd`; \
N=`perl -MYAML -e 'print((YAML::LoadFile("META.yml"))->{name})'`; \
V=`perl -MYAML -e 'print((YAML::LoadFile("META.yml"))->{version})'`; \
D="$${N}-$${V}"; \
rm -fr "/tmp/$$D"; \
cat MANIFEST | cpio -dump "/tmp/$$D"; \
cd /tmp; tar czvf "$${D}.tar.gz" $$D; rm -r $$D; \
cd $$H; mv "/tmp/$${D}.tar.gz" ./
doc:
make -C doc
%.xul: slides/%.slides template/* config.yaml
rm -f $@
perl bin/render-template $< $@
clean purge:
-rm -rf *.xul Sporx-*.tar.gz