xref: /minix3/usr.bin/make/unit-tests/order.mk (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc# $NetBSD: order.mk,v 1.1 2014/08/21 13:44:51 apb Exp $
2*0a6a1f1dSLionel Sambuc
3*0a6a1f1dSLionel Sambuc# Test that .ORDER is handled correctly.
4*0a6a1f1dSLionel Sambuc# The explicit dependency the.o: the.h will make us examine the.h
5*0a6a1f1dSLionel Sambuc# the .ORDER will prevent us building it immediately,
6*0a6a1f1dSLionel Sambuc# we should then examine the.c rather than stop.
7*0a6a1f1dSLionel Sambuc
8*0a6a1f1dSLionel Sambucall: the.o
9*0a6a1f1dSLionel Sambuc
10*0a6a1f1dSLionel Sambuc.ORDER: the.c the.h
11*0a6a1f1dSLionel Sambuc
12*0a6a1f1dSLionel Sambucthe.c the.h:
13*0a6a1f1dSLionel Sambuc	@echo Making $@
14*0a6a1f1dSLionel Sambuc
15*0a6a1f1dSLionel Sambuc.SUFFIXES: .o .c
16*0a6a1f1dSLionel Sambuc
17*0a6a1f1dSLionel Sambuc.c.o:
18*0a6a1f1dSLionel Sambuc	@echo Making $@ from $?
19*0a6a1f1dSLionel Sambuc
20*0a6a1f1dSLionel Sambucthe.o: the.h
21