aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile78
1 files changed, 72 insertions, 6 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 1f44fbd..5d7b856 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -8,7 +8,7 @@ SCHEME_IMPLEMENTATION = guile
.PRECIOUS: %.el
define tangle =
- @echo -e "\e[35mOBT\e[0m" $<
+ @printf "\e[35mOBT\e[0m %s\n" $<
@$(EMACS) -quick -batch \
-eval "(package-initialize)" \
-load ob-tangle \
@@ -48,11 +48,11 @@ picom-clean:
## Emacs
-emacs: emacs/.config/shepherd/init.d/emacs.scm emacs/.config/emacs/init.elc
+before-emacs-install: emacs/.emacs.d/init.elc
emacs-clean:
- rm -f emacs/.config/shepherd/init.d/emacs.scm emacs/.config/emacs/init.el \
- emacs/.config/emacs/init.elc
+ rm -f emacs/.config/shepherd/init.d/emacs.scm emacs/.emacs.d/init.el \
+ emacs/.emacs.d/init.elc
## Xmodmap
@@ -131,8 +131,15 @@ nyxt: nyxt/.config/nyxt/init.lisp
$(call tangle,emacs-lisp)
%.elc: %.el
- @echo -e "\e[36mELC\e[0m" $<
- $(EMACS) -batch -f package-initialize -f batch-byte-compile $<
+ @printf "\e[36mELC\e[0m %s\n" $<
+ @$(EMACS) -q -batch -f package-initialize -f batch-byte-compile $<
+
+%.fnl: %.org
+ $(call tangle,fennel)
+
+%.lua: %.fnl
+ @printf "\e[32mFNL\e[0m %s\n" $<
+ @fennel --compile $^ > $@
%: %.org
$(call tangle)
@@ -146,6 +153,9 @@ nyxt: nyxt/.config/nyxt/init.lisp
check:
$(SCHEME_IMPLEMENTATION) --no-auto-compile test.scm
+$(HOME)/code/%/:
+ mkdir -p $@
+
new-dotfiles:
## Surfingkeys
@@ -154,6 +164,62 @@ surfingkeys/dist/home.js: surfingkeys/home.ts
surfingkeys/dist/punt.js: surfingkeys/punt.ts surfingkeys/home.ts
cd surfingkeys && guix shell nodejs -- npx webpack -c webpack.config.js
+## Diamond Interactive MacOS
+
+diamond-interactive: ssh-keygen brew-install wezterm-install glide-install git-install zsh-install _mbsetupuser-install change-macos-defaults
+
+ssh-keygen: $(HOME)/.ssh/id_ed25519.pub
+
+$(HOME)/.ssh/id_ed25519.pub:
+ ssh-keygen -t ed25519 -C "Tom Punt Macos Laptop"
+
+brew-install: _mbsetupuser/Brewfile
+ brew bundle --quiet --file $^
+
+before-_mbsetupuser-install: \
+ _mbsetupuser/.emacs.d/init.elc \
+ _mbsetupuser/.emacs.d/scripts/find-php-class
+
+before-wezterm-install: wezterm/.config/wezterm/wezterm.lua
+
+_mbsetupuser/.config/zsh/conf.d/postgresql.sh: _mbsetupuser/Brewfile
+ $(call tangle,shell)
+
+_mbsetupuser/.emacs.d/init.el: \
+ emacs/.emacs.d/init.el \
+ emacs/.emacs.d/oni-outline.el \
+ emacs/.emacs.d/oni-gui.el \
+ emacs/.emacs.d/oni-dashboard.el \
+ emacs/.emacs.d/oni-stillness.el \
+ emacs/.emacs.d/oni-xterm-color.el \
+ emacs/.emacs.d/oni-compilation.el \
+ emacs/.emacs.d/oni-php.el \
+ emacs/.emacs.d/oni-prescient.el \
+ emacs/.emacs.d/oni-corfu.el \
+ emacs/.emacs.d/oni-yasnippet.el \
+ emacs/.emacs.d/oni-smartparens.el \
+ emacs/.emacs.d/oni-flycheck.el \
+ emacs/.emacs.d/oni-dumb-jump.el \
+ emacs/.emacs.d/oni-grep.el \
+ oni/home/config/pop-os/emacs.el
+ mkdir -p $$(dirname $@)
+ cat $^ > $@
+
+_mbsetupuser/.emacs.d/scripts/%: emacs/.emacs.d/scripts/%
+ mkdir -p $$(dirname $@)
+ cp $^ $@
+
+project-directories: \
+ $(HOME)/code/personal/ \
+ $(HOME)/code/diamond-interactive/ \
+ $(HOME)/code/foreign/ \
+ $(HOME)/code/study/
+
+change-macos-defaults:
+# https://macos-defaults.com/dock/autohide.html
+ defaults write com.apple.dock "autohide" -bool "true"
+ killall Dock
+
# Local Variables:
# outline-regexp: "##+"
# End: