summaryrefslogtreecommitdiffstats
path: root/examples/packages/example_tmux/Makefile
blob: 28ce0197ea9e97a02d968edfdfddc5830ef3d64c (plain)
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
setup: dirs repo
	@echo Ready.

repo_content: repo_dir
	@cp ./pkg.toml /tmp/tmux-repo/pkg.toml

repo: repo_dir repo_content
	cd /tmp/tmux-repo && git init && git add . && git commit -m init

dirs: release_dir staging_dir repo_dir sources_dir

release_dir:
	@mkdir -p /tmp/tmux-releases

staging_dir:
	@mkdir -p /tmp/tmux-staging

repo_dir:
	@mkdir -p /tmp/tmux-repo

sources_dir:
	@mkdir -p /tmp/tmux-sources


dirs_clean: release_dir_clean staging_dir_clean repo_dir_clean sources_dir_clean

release_dir_dir:
	@rm /tmp/tmux-releases/* || true

staging_dir_dir:
	@rm /tmp/tmux-staging/* || true

repo_dir_dir:
	@rm /tmp/tmux-repo/* || true

sources_dir_dir:
	@rm /tmp/tmux-sources/* || true