Skip to content

Commit c10eaa4

Browse files
authored
Merge pull request #533 from doronbehar/detect-archlinux
Set `ARDMK_VENDOR` differently if OS is Arch Linux.
2 parents 80b8167 + c18ad9f commit c10eaa4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Arduino.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,12 @@ endif
326326
########################################################################
327327
# 1.5.x vendor - defaults to arduino
328328
ifndef ARDMK_VENDOR
329-
ARDMK_VENDOR = arduino
329+
ARCH_LINUX := $(shell grep "Arch Linux" /etc/os-release 2>/dev/null)
330+
ifdef ARCH_LINUX
331+
ARDMK_VENDOR = archlinux-arduino
332+
else
333+
ARDMK_VENDOR = arduino
334+
endif
330335
$(call show_config_variable,ARDMK_VENDOR,[DEFAULT])
331336
else
332337
$(call show_config_variable,ARDMK_VENDOR,[USER])

0 commit comments

Comments
 (0)