summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-11-11 15:20:44 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-11-11 15:20:44 -0500
commit3f0ed06f522b6c6b4e3d376021890bc5a450aa85 (patch)
tree0a670450df51ce1444e62e7aaacc33d8df49d5dc
parenta46c5c23b26cf149065bd516a781bc66535d8bcf (diff)
Change ALSACTL to a variable in Makefile, have it fail over to 'echo'
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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 '$<' > '$@'