mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Added make as a prerequisite to make install.
This commit is contained in:
parent
954e1aa383
commit
704bb764b7
20
Makefile
20
Makefile
@ -313,7 +313,9 @@ clean_unit_test:
|
|||||||
$(MAKE) -C $$i clean ; \
|
$(MAKE) -C $$i clean ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean_doxygen:
|
clean_doxygen: @if [ ! -d ${TRICK_LIB_DIR} ]; then \
|
||||||
|
echo -e "\n\e[31mTrick needs to be compiled before it can be installed. Compiling now. . .\n\e[0m"; \
|
||||||
|
fi
|
||||||
@ $(MAKE) -C ${TRICK_HOME}/doxygen clean
|
@ $(MAKE) -C ${TRICK_HOME}/doxygen clean
|
||||||
|
|
||||||
|
|
||||||
@ -344,12 +346,20 @@ ${ER7_HEADERS} : ${PREFIX}/include/% : trick_source/%
|
|||||||
|
|
||||||
install: ${ER7_HEADERS}
|
install: ${ER7_HEADERS}
|
||||||
@if [ ! -d ${TRICK_LIB_DIR} ]; then \
|
@if [ ! -d ${TRICK_LIB_DIR} ]; then \
|
||||||
echo "Trick needs to be compiled before you can install it. Run 'make' before attempting to run 'make install'."; \
|
make; \
|
||||||
else \
|
|
||||||
cp -r bin include $(notdir ${TRICK_LIB_DIR}) libexec share ${PREFIX}; \
|
|
||||||
echo "Trick has been successfully installed."; \
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@if [ ${PREFIX} = "/usr/local" ]; then \
|
||||||
|
if [[ $EUID -ne 0 ]]; then \
|
||||||
|
echo -e "\n\e[31mInstalling Trick to /usr/local, the default installation location, requires super user privileges."; \
|
||||||
|
echo -e "Please log in as a super user to continue.\e[0m\n"; \
|
||||||
|
exit 1; \
|
||||||
|
fi; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp -r bin include $(notdir ${TRICK_LIB_DIR}) libexec share ${PREFIX}
|
||||||
|
@echo -e "\n\e[32mTrick has been installed successfully to ${PREFIX}.\e[0m\n"
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f ${PREFIX}/bin/trick-CP
|
rm -f ${PREFIX}/bin/trick-CP
|
||||||
rm -f ${PREFIX}/bin/trick-ICG
|
rm -f ${PREFIX}/bin/trick-ICG
|
||||||
|
Loading…
Reference in New Issue
Block a user