forked from FLMNH/webportal-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 774 Bytes
/
Makefile
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
# Mirror for downloading Apache Solr.
SOLR_MIRROR := http://archive.apache.org/dist/lucene/solr
# Use latest available version of Solr
export SOLR_VERSION := $(shell curl -s $(SOLR_MIRROR)/ | python3 get_latest_solr_vers.py)
export SOLR_VERSION = 7.5.0
export SOLR_DIST := solr-$(SOLR_VERSION)
export TOPDIR := $(shell pwd)
all: build
clean:
rm -rf build/
realclean: clean
rm -rf solr-* unpacked-war
build: $(SOLR_DIST) build.make specify_exports specify_exports/*.zip
cp -r $(SOLR_DIST)/ build
$(MAKE) -f $(TOPDIR)/build.make -C build
touch $@
$(SOLR_DIST).tgz:
# Fetching Solr distribution tar ball.
wget $(SOLR_MIRROR)/$(SOLR_VERSION)/$@
$(SOLR_DIST): $(SOLR_DIST).tgz
# Unpacking Solr distribution.
rm -rf $@
tar -zxf $<
$(SOLR_DIST)/%: $(SOLR_DIST)