Break up prereqs target into _py and _apt targets
We can't or don't want to install apt packages on the CI system, but we
do want to pull in python prereqs, so split the target to make that
easier to do in CI
Change-Id: Ic553673eeb75235ea688d5209e927289ea3efdd2
diff --git a/Makefile b/Makefile
index 69f98b6..75a7a74 100644
--- a/Makefile
+++ b/Makefile
@@ -34,18 +34,23 @@
include $(ROOTDIR)/build/platforms/$(PLATFORM)/platform.mk
+prereqs_apt: $(ROOTDIR)/scripts/install-prereqs.sh \
+ ${CANTRIP_PLATFORM_APT_DEPS}
+ $(ROOTDIR)/scripts/install-prereqs.sh \
+ -a "${CANTRIP_PLATFORM_APT_DEPS}"
+
+prereqs_py: $(ROOTDIR)/scripts/install-prereqs.sh \
+ $(ROOTDIR)/scripts/python-requirements.txt \
+ ${CANTRIP_PLATFORM_PYTHON_DEPS}
+ $(ROOTDIR)/scripts/install-prereqs.sh \
+ -p "$(ROOTDIR)/scripts/python-requirements.txt \
+ ${CANTRIP_PLATFORM_PYTHON_DEPS}" \
+
## Installs build prerequisites
#
# This installs a series of typical Linux tools needed to build the whole of the
# shodan system.
-prereqs: $(ROOTDIR)/scripts/install-prereqs.sh \
- $(ROOTDIR)/scripts/python-requirements.txt \
- ${CANTRIP_PLATFORM_PYTHON_DEPS} \
- ${CANTRIP_PLATFORM_APT_DEPS}
- $(ROOTDIR)/scripts/install-prereqs.sh \
- -p "$(ROOTDIR)/scripts/python-requirements.txt \
- ${CANTRIP_PLATFORM_PYTHON_DEPS}" \
- -a "${CANTRIP_PLATFORM_APT_DEPS}"
+prereqs:: prereqs_apt prereqs_py
$(OUT):
@mkdir -p $(OUT)
@@ -63,4 +68,4 @@
clean::
rm -rf $(OUT)
-.PHONY:: prereqs clean cantrip simulate tools
+.PHONY:: prereqs prereqs_apt prereqs_py clean cantrip simulate tools