-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (19 loc) · 750 Bytes
/
Makefile
File metadata and controls
22 lines (19 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
GIT_BRANCH := $(shell git branch | grep \* | cut -d ' ' -f2)
.PHONY: warn
warn:
@echo This is optimized for macOS and for me
@echo Read README.md for more information
@grep -o -E '^[-a-zA-Z0-9]+:' Makefile | grep -o -E '^[-a-zA-Z0-9]+'
.PHONY: there-be-hackers
there-be-hackers:
cd macports && make install-ports
cd git && make init
cd bash && make init
cd editorconfig && make init
cd vscode && make init
cd vim && make init
cd dev && make init
.PHONY: git-push
git-push:
git push -u origin $(GIT_BRANCH) || (git remote add origin git@github.com:aikchar/new-mac.git && git push -u origin $(GIT_BRANCH))
git push -u gitlab $(GIT_BRANCH) || (git remote add gitlab git@gitlab.com:aikchar/new-mac.git && git push -u gitlab $(GIT_BRANCH))