diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-05-29 22:57:17 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-05-29 22:57:17 -0400 |
commit | a6d337305cb46507e73296c056612d33a314300b (patch) | |
tree | a72dbad78dad0a1b6a4804c57ee65ab9ec7521ae /Makefile | |
parent | 7b335d9442411d226993af47e05084c6742ca0ad (diff) |
Generate .nanorc dynamicly
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6d28864 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/ +NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK))))) + +all: .nanorc + +.nanorc: .nanorc.in $(NANO_SHARE) + cat '$<' > '$@' + for file in $(NANO_SHARE)/*.nanorc; do echo "include \"$$file\""; done >> '$@' + +commit: + git commit -a + +pull: + git pull + $(MAKE) + |