forked from key4hep/k4RecTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
16 lines (14 loc) · 781 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
MAKEFLAGS += --no-print-directory
make:
@ mkdir -p build install ; \
cd build ; \
cmake .. -DCMAKE_INSTALL_PREFIX=../install ; \
make install -j4 ; \
cd .. ; \
export LD_LIBRARY_PATH=${CURDIR}/install/lib:${CURDIR}/install/lib64:$$LD_LIBRARY_PATH ; \
export PYTHONPATH=${CURDIR}/install/python:$$PYTHONPATH ; \
printf "#!/bin/bash\nif [ -n \"\$$KEY4HEP_STACK\" ];\nthen\n echo '----> Info: Key4hep stack already set up. Skipping...'\nelse\n source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh\nfi\nexport LD_LIBRARY_PATH=${CURDIR}/install/lib:${CURDIR}/install/lib64:\$$LD_LIBRARY_PATH\nexport PYTHONPATH=${CURDIR}/install/python:\$$PYTHONPATH\n" > ${CURDIR}/setup.sh ; \
chmod +x ${CURDIR}/setup.sh
.PHONY: clean
clean:
@ (rm -r build install && rm setup.sh) || true