1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tools/setsid: cleanup and allow Makefile to be used standalone

This commit is contained in:
Alexandre Abadie 2020-07-10 11:27:35 +02:00
parent 5dd5c7913f
commit ce36767972
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -2,16 +2,21 @@ PKG_NAME = setsid
PKG_URL = https://github.com/tzvetkoff/setsid-macosx
PKG_VERSION = e5b851df41591021baf5cf88d4e41572baf8e08b
PKG_LICENSE = BSD-2-Clause
PKG_BUILDDIR = $(CURDIR)/bin
# manually set some RIOT env vars, so this Makefile can be called stand-alone
RIOTBASE ?= $(CURDIR)/../../..
RIOTTOOLS ?= $(CURDIR)/..
PKG_SOURCE_DIR = $(CURDIR)/bin
PKG_BUILD_OUT_OF_SOURCE = 0
include $(RIOTBASE)/pkg/pkg.mk
all:
all: $(CURDIR)/setsid
$(CURDIR)/setsid:
@echo "[INFO] compiling setsid from source now"
$(MAKE) BINDIR=$(PKG_BUILDDIR) -C $(PKG_SOURCE_DIR)
$(MAKE) BINDIR=$(PKG_BUILD_DIR) -C $(PKG_SOURCE_DIR)
@mv $(PKG_SOURCE_DIR)/setsid $(CURDIR)/setsid
distclean::
@rm -f $(CURDIR)/setsid
clean::
rm -f $(CURDIR)/setsid