2020-11-20 03:54:37 +00:00
|
|
|
# $NetBSD: order.mk,v 1.2 2020/11/09 20:50:56 rillig Exp $
|
2012-11-15 22:01:30 +00:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
2020-11-20 03:54:37 +00:00
|
|
|
.MAKEFLAGS: -j1
|
|
|
|
|
2012-11-15 22:01:30 +00:00
|
|
|
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
|