-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
83 lines (73 loc) · 2.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
TMP := tmp
VPATH := $(TMP)
SCRIPTS := $(basename $(shell ls -p install | egrep -v /$))
ARCH := $(shell find install/arch -name *.sh | cut -f 2,3 -d / | cut -f 1 -d .)
DEBIAN := $(shell find install/debian -name *.sh | cut -f 2,3 -d / | cut -f 1 -d .)
.DEFAULT_GOAL := install
# dependencies mapping
debian/git: debian/bash
debian/ruby: debian/bash debian/utils debian/git
debian/emacs: debian/bash debian/utils debian/git
debian/mongodb: debian/utils
debian/postgresql: debian/utils
debian/rabbitmq: debian/utils
debian/docker: debian/utils
debian/redis: debian/utils
debian/aws: debian/python
debian/awesome: debian/bash xscreensaver
debian/virtualbox: debian/debian_repo
debian/vagrant: debian/debian_repo
debian/java: debian/bash
debian/orientdb: debian/java
debian/irpf: debian/java
debian/lxc: debian/cgroups
debian/kubernetes: debian/virtualbox
debian/ansible: debian/python
debian/percol: debian/python
debian/android: debian/java
debian/react-native: debian/nodejs debian/android
# implicit rules mapped to installation scripts
arch/android: arch/aura
arch/awesome: arch/lua arch/bash arch/rofi arch/filemanager arch/imageviewer arch/pdfviewer arch/screenshot
arch/azure: arch/aura
arch/bash: arch/aura
arch/dropbox: arch/wget
arch/elixir: arch/git arch/erlang
arch/emacs: arch/bash arch/git arch/ssh arch/ag arch/aspell
arch/exercism: arch/aura
arch/figma: arch/aura
arch/gigalixir: arch/python
arch/quill: arch/aura
arch/jupyter: arch/python
arch/kubernetes: arch/aura arch/virtualbox
arch/lsp-bash: arch/node
arch/lsp-docker: arch/node
arch/lsp-elixir: arch/aura
arch/node: arch/aura
arch/pytorch: arch/python
arch/rbenv: arch/aura
arch/rescuetime: arch/aura
arch/slack: arch/aura
arch/skype: arch/aura
arch/toggl: arch/aura
arch/wakatime: arch/bash arch/python
arch/flutter: arch/bash arch/curl arch/git arch/zip arch/xz arch/glu arch/android
arch/xmind: arch/aura
$(ARCH):
install/[email protected]
@touch $(TMP)/$@
$(DEBIAN):
install/[email protected]
@touch $(TMP)/$@
install: $(SCRIPTS)
$(SCRIPTS):
./install/[email protected]
@touch $(TMP)/$@
# Docker rules (helpers)
build:
docker build --rm=false -t fernando/linuxenv .
run:
docker run -it fernando/linuxenv /bin/bash
clean:
@rm -fr $(TMP)/*[!.gitkeep]
.PHONY: install build run clean