Skip to content

Commit caf10cd

Browse files
committed
Alert user if project directory has been moved
Rather than giving an error that simply says, file not found alert the user to what they need to do when this happens. And in this case simply running setup again should do the trick. Resolves: #391
1 parent cb82d2e commit caf10cd

File tree

40 files changed

+402
-2
lines changed

40 files changed

+402
-2
lines changed

demos/arm_cortex/dwt_counter/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/multiplatform/delay/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/multiplatform/examples/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/multiplatform/file_io/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/multiplatform/stdin/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/Servo/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/adc/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/button/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/buzzer/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/command_line/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/dac/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/factory_test/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/freertos_blinker/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/gpio/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/gpio_interrupts/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/i2c/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/i2c_device/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

demos/sjtwo/oled/makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# sjsu_dev2.mk holds the $(SJSU_DEV2_BASE) variable which holds the location of
22
# the SJSU-Dev2 folder.
33
include ~/.sjsu_dev2.mk
4+
5+
ifndef SJSU_DEV2_BASE
6+
$(info +-------------- SJSU-Dev2 Location file not found --------------+)
7+
$(info | |)
8+
$(info | Run ./setup from within the SJSU-Dev2's folder |)
9+
$(info | |)
10+
$(info +---------------------------------------------------------------+)
11+
$(error )
12+
endif
13+
414
# Using the directory location, include the project makefile
515
include $(SJSU_DEV2_BASE)/makefile

0 commit comments

Comments
 (0)