xref: /illumos-gate/usr/src/cmd/audio/samples/Makefile (revision 8b80e8cb6855118d46f605e91b5ed4ce83417395)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright (c) 2001 by Sun Microsystems, Inc.
24# All rights reserved.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28# cmd/audio/samples/Makefile
29#
30
31include ../../Makefile.cmd
32
33SUBDIRS =	au
34
35SOUNDS=	sounds
36
37SAMPSUBDIR= share/audio/samples
38SAMPDIR= $(ROOT)/usr/$(SAMPSUBDIR)
39DEMODIR= $(ROOT)/usr/demo/SOUND
40SOUNDLINK= $(DEMODIR)/$(SOUNDS)
41
42all :=		TARGET= all
43install :=	TARGET= install
44clean :=	TARGET= clean
45clobber :=	TARGET= clobber
46lint :=		TARGET= lint
47_msg :=		TARGET= _msg
48
49.KEEP_STATE:
50
51all clean clobber _msg lint:	$(SUBDIRS)
52
53install:	$(SAMPDIR) $(DEMODIR) $(SOUNDLINK) $(SUBDIRS)
54
55$(SAMPDIR):
56	$(INS.dir)
57
58$(DEMODIR):
59	$(INS.dir)
60
61$(SOUNDLINK):	FRC
62	$(RM) $(DEMODIR)/$(SOUNDS)
63	-cd $(DEMODIR); pwd; $(SYMLINK) ../../$(SAMPSUBDIR)/au $(SOUNDS)
64
65$(SUBDIRS):	FRC
66		@cd $@; pwd; $(MAKE) $(TARGET)
67
68FRC:
69