From 3f0ed06f522b6c6b4e3d376021890bc5a450aa85 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 11 Nov 2011 15:20:44 -0500 Subject: Change ALSACTL to a variable in Makefile, have it fail over to 'echo' --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 998ff62..0efe771 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,15 @@ CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/ NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK))))) +ALSACTL=$(firstword $(shell which alsactl) echo) + targets=.nanorc .folders .crontab.cookie .alsa.save all: $(targets) clean: rm -f $(targets) .alsa.save: FORCE - alsactl --file $(HOME)/.alsa.save store || touch '$@' + $(ALSACTL) --file $(HOME)/.alsa.save store || touch '$@' .nanorc: .nanorc.in $(NANO_SHARE) cat '$<' > '$@' -- cgit v1.2.3-54-g00ecf