PHP_DIR = php-7.0.7 $(PHP_DIR): $(PHP_DIR).tar.gz tar -xmzf $< $(INSTALL_DIR)/modules/libphp7.so: $(PHP_DIR) $(INSTALL_DIR)/bin/apxs cd $< && ./configure --prefix=$(abspath $(INSTALL_DIR)) --with-apxs2=$(abspath $(INSTALL_DIR)/bin/apxs) \ --disable-cgi --disable-cli --disable-soap cd $< && $(MAKE) cd $< && $(MAKE) install build-apache-with-php: $(INSTALL_DIR)/bin/httpd $(INSTALL_DIR)/modules/libphp7.so