mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 23:46:27 -05:00
19 lines
628 B
Text
19 lines
628 B
Text
|
|
# 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
|