freebsd-dev/contrib/bmake/unit-tests/order.mk
Simon J. Gerraty e2eeea75eb Merge bmake-20201117
o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
  checks in InitObjdir.  Explicit .OBJDIR target always allows
  read-only directory.

o More code cleanup and refactoring.

o More unit tests

MFC after:	1 week
2020-11-20 06:02:31 +00:00

23 lines
415 B
Makefile

# $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