mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 07:29:04 +01:00
f2486abeab
* Just download LIKWID to get the headers * Remove perl-Data-Dumper from BuildRequires, only required by LIKWID build
26 lines
743 B
Makefile
26 lines
743 B
Makefile
|
|
all: likwid
|
|
|
|
|
|
# LIKWID version
|
|
LIKWID_VERSION = 5.2.1
|
|
|
|
.ONESHELL:
|
|
.PHONY: likwid
|
|
likwid:
|
|
INSTALL_FOLDER="$${PWD}/likwid"
|
|
BUILD_FOLDER="$${PWD}/likwidbuild"
|
|
if [ -d $${INSTALL_FOLDER} ]; then rm -r $${INSTALL_FOLDER}; fi
|
|
mkdir --parents --verbose $${INSTALL_FOLDER} $${BUILD_FOLDER}
|
|
wget -P "$${BUILD_FOLDER}" ftp://ftp.rrze.uni-erlangen.de/mirrors/likwid/likwid-$(LIKWID_VERSION).tar.gz
|
|
tar -C $${BUILD_FOLDER} -xf $${BUILD_FOLDER}/likwid-$(LIKWID_VERSION).tar.gz
|
|
install -Dpm 0644 $${BUILD_FOLDER}/likwid-$(LIKWID_VERSION)/src/includes/likwid*.h $${INSTALL_FOLDER}/
|
|
install -Dpm 0644 $${BUILD_FOLDER}/likwid-$(LIKWID_VERSION)/src/includes/bstrlib.h $${INSTALL_FOLDER}/
|
|
rm -r $${BUILD_FOLDER}
|
|
|
|
|
|
clean:
|
|
rm -rf likwid
|
|
|
|
.PHONY: clean
|