snapraid/GNUmakefile
Andrea Mazzoleni d5e18adb95
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
Build Linux and Windows out-of-tree in dedicated linux/ and windows/ directories
2026-09-26 19:06:59 +02:00

18 lines
628 B
Makefile

# If Makefile exists (generated by ./configure in this directory), delegate
# directly to it so that in-tree builds work normally as if this file were absent.
# Otherwise, redirect all targets to linux/Makefile for out-of-tree builds.
# Named GNUmakefile so it takes precedence in GNU Make without conflicting with
# Makefile on case-insensitive filesystems (Windows/macOS).
ifeq ($(wildcard Makefile),Makefile)
include Makefile
else ifeq ($(wildcard linux/Makefile),linux/Makefile)
all doc:
$(MAKE) -C linux $@
.DEFAULT:
$(MAKE) -C linux $@
.PHONY: all doc
else
$(error SnapRAID is not configured. Run './configure')
endif