summaryrefslogtreecommitdiffstats
path: root/config/deps.mk
blob: 7d991ab6c296115acc12e28b289b20bf74f1a106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Copyright © Tavian Barnes <tavianator@tavianator.com>
# SPDX-License-Identifier: 0BSD

# Makefile that generates gen/deps.mk

.OBJDIR: .

include config/vars.mk

default::
	if config/cc.sh -MD -MP -MF /dev/null config/empty.c; then \
	    printf 'DEPFLAGS = -MD -MP -MF $${@:.o=.d}\n'; \
	fi >${TARGET} 2>${TARGET}.log