Skip to content

Commit

Permalink
Merge pull request #76 from timvideos/minor-fixes
Browse files Browse the repository at this point in the history
Small fixes to the Makefile
  • Loading branch information
mithro committed Sep 27, 2015
2 parents 03275a5 + b3f0b8f commit 41e7cd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Makefile
@@ -1,3 +1,8 @@

ifneq "$(HDMI2USB_ENV)" "1"
$(error "Please 'source scripts/setup-env.sh'")
endif

BOARD ?= atlys
MSCDIR ?= build/misoc
PROG ?= impact
Expand Down Expand Up @@ -26,8 +31,6 @@ else
FLTERM = $(MSCDIR)/tools/flterm
endif

include Makefile.$(TARGET)

help:
@echo "Environment:"
@echo " BOARD=atlys OR opsis (current: $(BOARD))"
Expand All @@ -45,6 +48,8 @@ help:
@echo " make clean"
@echo " make all"

include Makefile.$(TARGET)

clean: clean-$(TARGET)
cd $(MSCDIR) && $(CMD) clean

Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-env.sh
Expand Up @@ -75,4 +75,4 @@ python3 -c "import fl" || (echo "libfpgalink broken"; return)

alias python=python3

HDMI2USB_ENV=1
export HDMI2USB_ENV=1

0 comments on commit 41e7cd5

Please sign in to comment.