forked from liblouis/liblouis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
40 lines (29 loc) · 1.1 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
SUBDIRS = gnulib liblouis tools tables man tests python windows
# only build the documentation if we have makeinfo 5
if HAVE_MAKEINFO_5
SUBDIRS += doc
endif
ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4 -I tools/gnulib/m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = liblouis.pc
EXTRA_DIST = liblouis.pc README.windows HACKING
WINDIST_FILES = liblouis-$(VERSION)-win32.zip liblouis-$(VERSION)-win64.zip
.PHONY: distwin
distwin: $(WINDIST_FILES)
liblouis-$(VERSION)-win32.zip: Dockerfile.win32
docker build -f $< -t liblouis/win32 .
time=$$(date +'%Y%m%d-%H%M%S') && \
docker create --name="tmp_$$time" liblouis/win32 && \
docker cp "tmp_$$time":/usr/src/liblouis/liblouis.zip $@ && \
docker rm tmp_$$time
liblouis-$(VERSION)-win64.zip: Dockerfile.win64
docker build -f $< -t liblouis/win64 .
time=$$(date +'%Y%m%d-%H%M%S') && \
docker create --name="tmp_$$time" liblouis/win64 && \
docker cp "tmp_$$time":/usr/src/liblouis/liblouis.zip $@ && \
docker rm tmp_$$time
clean-local:
rm -rf $(WINDIST_FILES)
# .dockerignore
.dockerignore : .gitignore
sed -e 's|^\([^/#]\)|# \1|' -e 's|^/||' -e 's|\+|\\+|g' $< >$@