git: d8c42c34176a - stable/14 - sound examples: Organize files in directories

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Mon, 29 Jul 2024 15:35:15 UTC
The branch stable/14 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=d8c42c34176ad9a34ffc343acaa093bbd840e523

commit d8c42c34176ad9a34ffc343acaa093bbd840e523
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2024-07-27 11:54:35 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2024-07-29 15:34:54 +0000

    sound examples: Organize files in directories
    
    More examples will be added, so it's better to be organized.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      2 days
    Reviewed by:    dev_submerge.ch, markj
    Differential Revision:  https://reviews.freebsd.org/D45968
    
    (cherry picked from commit cb00491fbc51751fe166056cc69e23beeb26fee4)
---
 share/examples/Makefile                  | 11 +++++++----
 share/examples/sound/{ => oss}/README    |  0
 share/examples/sound/{ => oss}/basic.c   |  0
 share/examples/sound/{ => oss}/midi.c    |  0
 share/examples/sound/{ => oss}/ossinit.h |  0
 share/examples/sound/{ => oss}/ossmidi.h |  0
 6 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/share/examples/Makefile b/share/examples/Makefile
index 06d10a0bc149..9cd64cc2a3bd 100644
--- a/share/examples/Makefile
+++ b/share/examples/Makefile
@@ -310,12 +310,15 @@ SE_SCSI_TARGET= \
 	scsi_cmds.c
 
 SE_DIRS+=	sound
-SE_SOUND= \
+SE_SOUND=
+
+SE_DIRS+=	sound/oss
+SE_SOUND_OSS= \
+	README \
 	basic.c \
-	ossinit.h \
-	ossmidi.h \
 	midi.c \
-	README
+	ossinit.h \
+	ossmidi.h
 
 SE_DIRS+=	sunrpc
 SE_SUNRPC=	Makefile
diff --git a/share/examples/sound/README b/share/examples/sound/oss/README
similarity index 100%
rename from share/examples/sound/README
rename to share/examples/sound/oss/README
diff --git a/share/examples/sound/basic.c b/share/examples/sound/oss/basic.c
similarity index 100%
rename from share/examples/sound/basic.c
rename to share/examples/sound/oss/basic.c
diff --git a/share/examples/sound/midi.c b/share/examples/sound/oss/midi.c
similarity index 100%
rename from share/examples/sound/midi.c
rename to share/examples/sound/oss/midi.c
diff --git a/share/examples/sound/ossinit.h b/share/examples/sound/oss/ossinit.h
similarity index 100%
rename from share/examples/sound/ossinit.h
rename to share/examples/sound/oss/ossinit.h
diff --git a/share/examples/sound/ossmidi.h b/share/examples/sound/oss/ossmidi.h
similarity index 100%
rename from share/examples/sound/ossmidi.h
rename to share/examples/sound/oss/ossmidi.h