-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
40 lines (32 loc) · 1.27 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
SUBDIRS= src t
SUPPORT_BIN= support-files/q4m-forward
EXAMPLES= examples/crawler/crawler.pl examples/crawler/initdb.sql examples/crawler/README
EXTRA_DIST= CMakeLists.txt run_tests.pl config/ac_mysql.m4 support-files/install.sql support-files/install-exec-hook.txt $(SUPPORT_BIN) $(EXAMPLES)
DOC_ROOT= @DOC_ROOT@
BINARY_ARCH= @BINARY_ARCH@
bindistdir= @BINARY_DIST_DIR@
remove_bindistdir = \
{ test ! -d $(bindistdir) \
|| { find $(bindistdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -fr $(bindistdir); }; }
install-exec-hook:
$(INSTALL) $(SUPPORT_BIN) $(bindir)
@cat support-files/install-exec-hook.txt
dist-doc:
rm -rf $(distdir)/doc doc.tmp
mkdir -p $(distdir)/doc doc.tmp
(cd doc.tmp && wget -q -r -X /dist $(DOC_ROOT))
find doc.tmp -type f -exec mv {} $(distdir)/doc \;
perl -i.bak -pe 's|href="\./"|href="index.html"|g' $(distdir)/doc/*.html
rm -f $(distdir)/doc/*.bak
rm -rf doc.tmp
dist-hook: dist-doc
test:
./run_tests.pl
binary-dist-dir: all distdir
$(remove_bindistdir)
mv $(distdir) $(bindistdir)
cat src/.libs/libqueue_engine.so > $(bindistdir)/libqueue_engine.so
binary-dist: binary-dist-dir
$(AMTAR) chof - $(bindistdir) | GZIP=$(GZIP_ENV) gzip -c > $(bindistdir).tar.gz
$(remove_bindistdir)