mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-08 14:51:32 +00:00
19 lines
392 B
Makefile
19 lines
392 B
Makefile
MAKEFLAGS += --check-symlink-times
|
|
|
|
SYS ?= $(shell gcc -dumpmachine)
|
|
export SYS
|
|
|
|
targets = all debug clean
|
|
ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
|
|
targets += pack
|
|
endif
|
|
|
|
.PHONY: $(targets)
|
|
$(targets):
|
|
make $@ -C src
|
|
make $@ -C test
|
|
|
|
.PHONY: format
|
|
format:
|
|
clang-format -i $(shell find . -path ./test/apps -prune -o \( -name '*.h' -o -name '*.c' \) -print)
|