1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

pkg/pkg.mk: ensure file is included at the beginning

This should prevent issues where the Makefile use 'PKG_BUILDDIR' before
them being defined.

This will also allow changing the state targets to be file targets.
This commit is contained in:
Gaëtan Harter 2019-10-04 13:54:43 +02:00 committed by Bas Stottelaar
parent 0b7f5c2272
commit 1a07471311

View File

@ -1,6 +1,11 @@
#
# Include this file if your Package needs to be checked out by git
#
# Packages should include this file just after defining the PKG_* variables
# This will ensure the variables are defined in the Makefile.
ifneq (,$(.DEFAULT_GOAL))
$(error $(lastword $(MAKEFILE_LIST)) must be included at the beginning of the file after defining the PKG_* variables)
endif
ifeq (,$(PKG_NAME))
$(error PKG_NAME not defined)