freebsd-dev/contrib/bmake/unit-tests/order.mk

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
415 B
Makefile
Raw Normal View History

# $NetBSD: order.mk,v 1.2 2020/11/09 20:50:56 rillig Exp $
# Test that .ORDER is handled correctly.
# The explicit dependency the.o: the.h will make us examine the.h
# the .ORDER will prevent us building it immediately,
# we should then examine the.c rather than stop.
.MAKEFLAGS: -j1
all: the.o
.ORDER: the.c the.h
the.c the.h:
@echo Making $@
.SUFFIXES: .o .c
.c.o:
@echo Making $@ from $?
the.o: the.h