diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-10-28 23:39:15 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-10-28 23:39:15 -0400 |
commit | 8650a619d3397b750b33770bfba56b0e4fcb1753 (patch) | |
tree | 3d140c724182b7efb45a36d8ea89485b50001def /Makefile | |
parent | c2126f41e1eb662c52ddf7f381134a0bf3da62a4 (diff) | |
download | conf-8650a619d3397b750b33770bfba56b0e4fcb1753.tar.gz conf-8650a619d3397b750b33770bfba56b0e4fcb1753.zip |
reorganize makefile a bit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 177 |
1 files changed, 92 insertions, 85 deletions
@@ -1,87 +1,94 @@ -INTO = $(HOME) -INSTALL = agignore \ - bash_logout \ - bash_profile \ - bashrc \ - config/alacritty/alacritty.yml \ - config/touchegg/touchegg.conf \ - crawlrc \ - gdbinit \ - gitconfig \ - gitignore \ - i3status.conf \ - inputrc \ - ledgerrc \ - less \ - mailcap \ - mpdconf \ - msmtprc \ - muttrc \ - nethackrc \ - notmuch-config \ - offlineimaprc \ - perlcriticrc \ - procmailrc \ - profile \ - proverc \ - replyrc \ - screenrc \ - tigrc \ - tmux.conf \ - vimrc \ - wunderground \ - xbindkeysrc \ - Xdefaults \ - xinitrc \ - xprofile \ - Xmodmap \ - zlogout \ - zshcomplete \ - zshinput \ - zshrc \ - abook \ - bin \ - config/karabiner \ - dzil \ - fortune \ - gnupg \ - hammerspoon \ - i3 \ - mpdscribble \ - ncmpcpp \ - offlineimap \ - procmail \ - services \ - sh \ - ssh \ - terminfo \ - tex \ - vim \ - weechat \ - zsh - -EMPTYDIRS = $(patsubst services/available/%,.log/%,$(wildcard services/available/*)) \ - Maildir \ - .cache/mutt/headers \ - .cache/mutt/bodies \ - .cache/mpd \ - .cache/vim/hist \ - .cache/vim/undo \ - .config/mpd/playlists \ - .config/alacritty \ - .config/touchegg - -INSTALLED = $(patsubst %,$(INTO)/%/,$(EMPTYDIRS)) \ - $(patsubst %,$(INTO)/.%,$(INSTALL)) - -BUILD = $(patsubst services/available/%,services/enabled/%,$(wildcard services/available/*)) \ - bin/local/timettyrec \ - $(addsuffix .dat,$(filter-out %.dat,$(wildcard fortune/*))) \ - $(addsuffix tags,$(wildcard vim/pack/*/start/*/doc/)) \ - vim/spell/en.utf-8.add.spl \ - less \ - wunderground \ - mpdscribble/mpdscribble.conf +INTO := $(HOME) + +INSTALL := \ + agignore \ + bash_logout \ + bash_profile \ + bashrc \ + config/alacritty/alacritty.yml \ + config/touchegg/touchegg.conf \ + crawlrc \ + gdbinit \ + gitconfig \ + gitignore \ + i3status.conf \ + inputrc \ + ledgerrc \ + less \ + mailcap \ + mpdconf \ + msmtprc \ + muttrc \ + nethackrc \ + notmuch-config \ + offlineimaprc \ + perlcriticrc \ + procmailrc \ + profile \ + proverc \ + replyrc \ + screenrc \ + tigrc \ + tmux.conf \ + vimrc \ + wunderground \ + xbindkeysrc \ + Xdefaults \ + xinitrc \ + xprofile \ + Xmodmap \ + zlogout \ + zshcomplete \ + zshinput \ + zshrc \ + abook \ + bin \ + config/karabiner \ + dzil \ + fortune \ + gnupg \ + hammerspoon \ + i3 \ + mpdscribble \ + ncmpcpp \ + offlineimap \ + procmail \ + services \ + sh \ + ssh \ + terminfo \ + tex \ + vim \ + weechat \ + zsh + +EMPTYDIRS := \ + $(patsubst services/available/%,.log/%,$(wildcard services/available/*)) \ + Maildir \ + .cache/mutt/headers \ + .cache/mutt/bodies \ + .cache/mpd \ + .cache/vim/hist \ + .cache/vim/undo \ + .config/mpd/playlists \ + .config/alacritty \ + .config/touchegg + +BUILD := \ + $(patsubst services/available/%,services/enabled/%,$(wildcard services/available/*)) \ + bin/local/timettyrec \ + $(addsuffix .dat,$(filter-out %.dat,$(wildcard fortune/*))) \ + $(addsuffix tags,$(wildcard vim/pack/*/start/*/doc/)) \ + vim/spell/en.utf-8.add.spl \ + less \ + wunderground \ + mpdscribble/mpdscribble.conf + +INSTALLED := \ + $(patsubst %,$(INTO)/%/,$(EMPTYDIRS)) \ + $(patsubst %,$(INTO)/.%,$(INSTALL)) \ + /var/spool/cron/$(USER) \ + $(INTO)/Maildir/.notmuch ECHO = @echo LN = @ln -sf @@ -95,7 +102,7 @@ submodules : build : $(BUILD) -install : all $(INSTALLED) /var/spool/cron/$(USER) $(INTO)/Maildir/.notmuch +install : all $(INSTALLED) @chmod 600 msmtprc @chmod 700 gnupg $(ECHO) Installed into $(INTO) |