forked from monperrus/ExpandAnimations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (12 loc) · 839 Bytes
/
Makefile
File metadata and controls
17 lines (12 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Makefile for building LibreOffice/OpenOffice extensions
EXTENSIONNAME=ExpandAnimations
VERSION=$(shell xmlstarlet sel -N oo="http://openoffice.org/extensions/description/2006" -t -v "//oo:version/@value" extension/description.xml)
all: dist/$(EXTENSIONNAME)-$(VERSION).oxt
dist/$(EXTENSIONNAME)-$(VERSION).oxt: $(shell find extension)
cd extension; zip -r ../$@ .
extension/ExpandAnimations/ExpandAnimations.xba: src/ExpandAnimations.bas
echo '<?xml version="1.0" encoding="UTF-8"?>' > $@
echo '<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">' >> $@
echo '<script:module xmlns:script="http://openoffice.org/2000/script" script:name="ExpandAnimations" script:language="StarBasic">' >> $@
perl -MHTML::Entities -ne 'print encode_entities($$_)' $^ >> $@
echo '</script:module>' >> $@