$NetBSD: patch-ag,v 1.10 2022/08/19 12:17:46 tnn Exp $

(from cvs log for 1.4)
date: 2006/01/11 11:32:38;  author: markd;  state: Exp;  lines: +12 -14
Some makedepend's object if a referenced header file is a dangling
symlink, so create the actual release.h file at the includes stage as
the depends stage is too late (server/os is before lib/audio).
Fixes PR pkg/32098 from Gilles Dauphin.

--- config/NetAudio.tmpl.orig	2013-04-27 00:41:00.000000000 +0000
+++ config/NetAudio.tmpl
@@ -316,6 +316,8 @@ AuComplexProgramTarget(program)
 release.h: $(TOP)/RELEASE				    		    @@\
 	@echo "static const char *release = \"`cat $(TOP)/RELEASE`\";" > $@   @@\
 						    			    @@\
+includes:: release.h				    			    @@\
+						    			    @@\
 depend:: release.h				    			    @@\
 						    			    @@\
 clean::			    			    			    @@\
