diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-25 12:12:28 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-25 12:12:28 +1200 |
commit | 5b515cc8926cf40dd00662c069f854ac4baf9e45 (patch) | |
tree | c4902e624bf1b4e0ce773bd36da073eec8de1454 /Makefile | |
parent | Remove unneeded targets (diff) | |
download | dotfiles-5b515cc8926cf40dd00662c069f854ac4baf9e45.tar.gz dotfiles-5b515cc8926cf40dd00662c069f854ac4baf9e45.zip |
Move targets into alphabetical order
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -41,16 +41,16 @@ install-x \ install-zsh \ test \ - test-sh \ test-bash \ test-bin \ test-games \ + test-sh \ test-urxvt \ lint \ - lint-sh \ lint-bash \ lint-bin \ lint-games \ + lint-sh \ lint-urxvt all : gnupg/gpg.conf @@ -281,15 +281,7 @@ install-zsh : install -pm 0644 -- zsh/zprofile "$(HOME)"/.zprofile install -pm 0644 -- zsh/zshrc "$(HOME)"/.zshrc -test : test-sh test-bash test-bin test-urxvt - -test-sh : - @for sh in sh/* sh/profile.d/* ; do \ - if [ -f "$$sh" ] && ! sh -n "$$sh" ; then \ - exit 1 ; \ - fi \ - done - @printf 'All sh(1) scripts parsed successfully.\n' +test : test-bash test-bin test-sh test-urxvt test-bash : @for bash in bash/* bash/bashrc.d/* bash/bash_profile.d/* ; do \ @@ -319,6 +311,14 @@ test-games : done @printf 'All shell scripts in games parsed successfully.\n' +test-sh : + @for sh in sh/* sh/profile.d/* ; do \ + if [ -f "$$sh" ] && ! sh -n "$$sh" ; then \ + exit 1 ; \ + fi \ + done + @printf 'All sh(1) scripts parsed successfully.\n' + test-urxvt : @for perl in urxvt/ext/* ; do \ perl -c "$$perl" >/dev/null || exit 1 ; \ @@ -327,9 +327,6 @@ test-urxvt : lint : lint-sh lint-bash lint-bin lint-games lint-urxvt -lint-sh : - find sh -type f -print -exec shellcheck -- {} \; - lint-bash : find bash -type f -print -exec shellcheck -- {} \; @@ -349,5 +346,8 @@ lint-games : fi ; \ done +lint-sh : + find sh -type f -print -exec shellcheck -- {} \; + lint-urxvt : find urxvt/ext -type f -print -exec perlcritic --brutal -- {} \; |