Skip to content

Commit

Permalink
lib: download unicode data into srcdir
Browse files Browse the repository at this point in the history
This is a step toward fixing builds where object dir != source dir.
  • Loading branch information
Josef 'Jeff' Sipek authored and GitLab committed May 10, 2017
1 parent df7ac49 commit 16d84b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/Makefile.am
Expand Up @@ -4,11 +4,11 @@ BUILT_SOURCES = unicodemap.c

EXTRA_DIST = unicodemap.c unicodemap.pl UnicodeData.txt

UnicodeData.txt:
test -f UnicodeData.txt || wget https://dovecot.org/res/UnicodeData.txt
$(srcdir)/UnicodeData.txt:
test -f $@ || wget -O $@ https://dovecot.org/res/UnicodeData.txt

$(srcdir)/unicodemap.c: unicodemap.pl UnicodeData.txt
perl $(srcdir)/unicodemap.pl < UnicodeData.txt > $@
$(srcdir)/unicodemap.c: unicodemap.pl $(srcdir)/UnicodeData.txt
perl $(srcdir)/unicodemap.pl < $(srcdir)/UnicodeData.txt > $@

liblib_la_SOURCES = \
array.c \
Expand Down

0 comments on commit 16d84b9

Please sign in to comment.