From c5453ff6edeee5f1209c0771f9a0e6843b59a80b Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 17 Jul 2018 18:25:24 -0700 Subject: [PATCH] makefile: Require zip archive or git clone to acquire simh source code As discussed in #596 --- makefile | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 1e4fa582..28e2945d 100644 --- a/makefile +++ b/makefile @@ -867,8 +867,23 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) GIT_COMMIT_ID=$(shell cd .. ; git submodule status | grep "$(notdir $(realpath .))" | awk '{ print $$1 }') GIT_COMMIT_TIME=$(shell git --git-dir=$(realpath .)/.git log $(GIT_COMMIT_ID) -1 --pretty="%aI") else - GIT_COMMIT_ID=undetermined-git-id - GIT_COMMIT_TIME=undetermined-commit-time + $(info *** Error ***) + $(info *** Error *** The simh git commit id can not be determined.) + $(info *** Error ***) + $(info *** Error *** There are ONLY two supported ways to acquire and build) + $(info *** Error *** the simh source code:) + $(info *** Error *** 1: directly with git via:) + $(info *** Error *** $$ git clone https://github.com/simh/simh) + $(info *** Error *** $$ cd simh) + $(info *** Error *** $$ make {simulator-name}) + $(info *** Error *** OR) + $(info *** Error *** 2: download the source code zip archive from:) + $(info *** Error *** $$ wget(or via browser) https://github.com/simh/simh/archive/master.zip) + $(info *** Error *** $$ unzip master.zip) + $(info *** Error *** $$ cd simh-master) + $(info *** Error *** $$ make {simulator-name}) + $(info *** Error ***) + $(error get simh source either with zip download or git clone) endif endif endif