-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
65 lines (54 loc) · 1.98 KB
/
Makefile.am
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
## librdfa/Makefile.am
ACLOCAL_AMFLAGS = -I setup
SUBDIRS = c python tests docs
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = librdfa.pc
EXTRA_DIST = \
LICENSE \
LICENSE-apache-2.0 \
LICENSE.gpl-2.0 \
LICENSE.lgpl-2.1 \
installers/debian/changelog \
installers/debian/compat \
installers/debian/control \
installers/debian/copyright \
installers/debian/librdfa1-dev.install \
installers/debian/librdfa1.install \
installers/debian/python-rdfa.install \
installers/debian/rules
packages:
@echo "Generating Debian packages..."
rm -f debian
$(LN_S) installers/debian debian
dpkg-buildpackage -us -uc -rfakeroot
mkdir -p installers/packages
mv ../*rdfa*$(VERSION)*.deb installers/packages
# @echo "Generating RPM packages..."
# cd installers/packages && fakeroot alien --to-rpm -k --scripts *.deb
# @echo "Generating TGZ packages..."
# cd installers/packages && fakeroot alien --to-tgz -k --scripts *.deb
zip-windows:
@echo "Generating Windows ZIP release..."
mkdir -p installers/librdfa-windows-$(VERSION)
cp -p c/rdfa.h installers/librdfa-windows-$(VERSION)
cp -p c/rdfa_utils.h installers/librdfa-windows-$(VERSION)
cp -p libs/rdfa.dll installers/librdfa-windows-$(VERSION)
cp -p libs/rdfa.lib installers/librdfa-windows-$(VERSION)
cd installers && zip -r9 librdfa-$(VERSION)-windows-$(VERSION).zip \
librdfa-windows-$(VERSION)
rm -rf installers/librdfa-windows-$(VERSION)
zip-macos:
@echo "Generating Mac OS X ZIP release..."
mkdir -p installers/librdfa-macos-$(VERSION)
cp -p c/rdfa.h installers/librdfa-macos-$(VERSION)
cp -p c/rdfa_utils.h installers/librdfa-macos-$(VERSION)
cp -p libs/librdfa.dylib installers/librdfa-macos-$(VERSION)
cp -p libs/librdfa.a installers/librdfa-macos-$(VERSION)
cd installers && zip -r9 librdfa-$(VERSION)-macos-$(VERSION).zip \
librdfa-macos-$(VERSION)
rm -rf installers/librdfa-macos-$(VERSION)
.PHONY: packages zip-windows zip-macos
clean-local:
rm -rf installers/librdfa-*
rm -rf installers/packages
## end librdfa/Makefile.am