diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-11-11 15:20:44 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-11-11 15:20:44 -0500 |
commit | 3f0ed06f522b6c6b4e3d376021890bc5a450aa85 (patch) | |
tree | 0a670450df51ce1444e62e7aaacc33d8df49d5dc | |
parent | a46c5c23b26cf149065bd516a781bc66535d8bcf (diff) |
Change ALSACTL to a variable in Makefile, have it fail over to 'echo'
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 '$<' > '$@' |