#order is significant!!!

all:  
	cd note; make all
	cd chord; make all
	cd beat; make all
	cd change; make all
	cd timed; make all
	cd noise; make all

# meta rules for sound files - I doubt this works, think of it as documentation

# save files created with record or soundtool to {something}.au
# sun2fft is a shell that does the double conversion into fft for my stuff

.au.fft :
	sun2fft $*


# noise creates a score file for csound, noise2sun makes it into a sun file
# I use the .cs tag so I don't overwrite the original .au file

.sco.cs :
	noise2sun $*

# Create a tar file of the source code, makefiles, and documentation

SHELL=/usr/bin/csh

tar source.tar :
	tar -cf - {note,chord,beat,change,timed}/*.{h,c,p}* docs/* Makefile {note,chord,beat,change,timed}/Makefile | compress -c > source.tar.Z

