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:
parent
5dd5c7913f
commit
ce36767972
15
dist/tools/setsid/Makefile
vendored
15
dist/tools/setsid/Makefile
vendored
@ -2,16 +2,21 @@ PKG_NAME = setsid
|
|||||||
PKG_URL = https://github.com/tzvetkoff/setsid-macosx
|
PKG_URL = https://github.com/tzvetkoff/setsid-macosx
|
||||||
PKG_VERSION = e5b851df41591021baf5cf88d4e41572baf8e08b
|
PKG_VERSION = e5b851df41591021baf5cf88d4e41572baf8e08b
|
||||||
PKG_LICENSE = BSD-2-Clause
|
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_SOURCE_DIR = $(CURDIR)/bin
|
||||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||||
include $(RIOTBASE)/pkg/pkg.mk
|
include $(RIOTBASE)/pkg/pkg.mk
|
||||||
|
|
||||||
all:
|
all: $(CURDIR)/setsid
|
||||||
|
|
||||||
|
$(CURDIR)/setsid:
|
||||||
@echo "[INFO] compiling setsid from source now"
|
@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
|
@mv $(PKG_SOURCE_DIR)/setsid $(CURDIR)/setsid
|
||||||
|
|
||||||
distclean::
|
clean::
|
||||||
@rm -f $(CURDIR)/setsid
|
rm -f $(CURDIR)/setsid
|
||||||
|
Loading…
Reference in New Issue
Block a user