-all: clean sin
+SRC = sin.dsp
-sin: sin.dsp
- faustine -d $<
+BASENAME = output
+FORMAT = wav
+WAVOUT = $(BASENAME)1.$(FORMAT)
+
+all: $(WAVOUT)
+
+$(WAVOUT): $(SRC)
+ faustine -f $< --obasename $(BASENAME) --oformat $(FORMAT)
clean::
- rm -f gmon.out output*
+ rm -f gmon.out $(BASENAME)*