diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,15 +1,15 @@ CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/ NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK))))) -ALSACTL=$(firstword $(shell which alsactl) echo) +ALSACTL=$(firstword $(shell . $(HOME)/.profile &>/dev/null; which alsactl) echo) -targets=.nanorc .folders .crontab.cookie .alsa.save +targets=.nanorc .folders .crontab.cookie .current.asound all: $(targets) clean: rm -f $(targets) -.alsa.save: FORCE - $(ALSACTL) --file $(HOME)/.alsa.save store || touch '$@' +%.asound: FORCE + $(ALSACTL) store --file '$@' .nanorc: .nanorc.in $(NANO_SHARE) cat '$<' > '$@' |