From 4a1dbb6dcf0b5efc26d366b164707311332354c9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 31 Dec 2011 18:31:57 -0500 Subject: update --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index da553de..e04ff9f 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ clean: for file in $(NANO_SHARE)/*.nanorc; do echo "include \"$$file\""; done >> '$@' .folders: Maildir - find ~/Maildir -maxdepth 2 -type f -name "maildirfolder" -printf '%h\n'|sed -r 's@.*/(.*\.)(.*)@.\1\2@'|sort>'$@' + ( echo '..'; find ~/Maildir -maxdepth 2 -type f -name "maildirfolder" -printf '%h\n'|sed -r 's@.*/(.*\.)(.*)@.\1\2@' )|sort>'$@' .crontab.cookie: .crontab .crontab.local cat $^ | crontab - @@ -27,6 +27,8 @@ clean: touch '$@' Maildir: mkdir -p '$@'/{cur,new,tmp} +Maildir/%: | Maildir + mkdir -p '$@'/{cur,new,tmp} commit: git commit -a -- cgit v1.2.3-2-g168b From 1a03caa188928d7877dbc98616fdabf28346664b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 3 Mar 2012 09:35:10 -0500 Subject: change Makefile to not break cron if there's no trailing newline --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e04ff9f..1af51d3 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ clean: ( echo '..'; find ~/Maildir -maxdepth 2 -type f -name "maildirfolder" -printf '%h\n'|sed -r 's@.*/(.*\.)(.*)@.\1\2@' )|sort>'$@' .crontab.cookie: .crontab .crontab.local - cat $^ | crontab - + (cat $^; echo) | crontab - date > '$@' # don't do anything, just create these if they doesn't exist -- cgit v1.2.3-2-g168b From 6595fc906bae924f302c8f8c592ef791e9e2708d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 28 Mar 2012 21:03:19 -0400 Subject: touch 'maildirfolder' when creating a new Maildir/ folder --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1af51d3..def57c3 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,7 @@ Maildir: mkdir -p '$@'/{cur,new,tmp} Maildir/%: | Maildir mkdir -p '$@'/{cur,new,tmp} + touch '$@'/maildirfolder commit: git commit -a -- cgit v1.2.3-2-g168b From 108880603ffc9d81c8acb15de59a9e5730a32a73 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 17 May 2012 22:31:42 -0400 Subject: Makefile: source /etc/profile to set PATH for alsactl --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index def57c3..315e01d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ 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 . /etc/profile; which alsactl) echo) targets=.nanorc .folders .crontab.cookie .alsa.save all: $(targets) -- cgit v1.2.3-2-g168b From d37f24a3694055f3cc2c12a1642ee0b8de2592e8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 17 May 2012 22:33:15 -0400 Subject: Makefile use my profile instead; derp --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 315e01d..50ae80e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/ NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK))))) -ALSACTL=$(firstword $(shell . /etc/profile; which alsactl) echo) +ALSACTL=$(firstword $(shell . $(HOME)/.profile; which alsactl) echo) targets=.nanorc .folders .crontab.cookie .alsa.save all: $(targets) -- cgit v1.2.3-2-g168b From 39bd672b152e7b15f0b34fd06572ca3a14bf877c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 21 May 2012 12:21:55 -0400 Subject: redo alsa stuff --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 50ae80e..8c0ffa9 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/ NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK))))) -ALSACTL=$(firstword $(shell . $(HOME)/.profile; 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 '$<' > '$@' -- cgit v1.2.3-2-g168b