equal
deleted
inserted
replaced
76 IFNONEXIST_ITEMS = .wgetrc .subversion |
76 IFNONEXIST_ITEMS = .wgetrc .subversion |
77 |
77 |
78 RST_FILES = $(wildcard *.rst) |
78 RST_FILES = $(wildcard *.rst) |
79 HTML_FILES = $(RST_FILES:.rst=.html) |
79 HTML_FILES = $(RST_FILES:.rst=.html) |
80 |
80 |
|
81 # Might include my credentials. |
81 TARBALL_MINI := skel-mini.tar.gz |
82 TARBALL_MINI := skel-mini.tar.gz |
|
83 # Without personal info. |
|
84 TARBALL_MICRO := skel-micro.tar.gz |
82 |
85 |
83 ################################################################ |
86 ################################################################ |
84 # Build targets. |
87 # Build targets. |
85 |
88 |
86 .PHONY: all |
89 .PHONY: all |
96 endef |
99 endef |
97 |
100 |
98 $(TARBALL_MINI): $(TARBALL_MINI_DEPS) |
101 $(TARBALL_MINI): $(TARBALL_MINI_DEPS) |
99 tar zcf $(TARBALL_MINI) $(TARBALL_MINI_DEPS) |
102 tar zcf $(TARBALL_MINI) $(TARBALL_MINI_DEPS) |
100 |
103 |
|
104 .PHONY: dist-micro |
|
105 dist-micro: $(TARBALL_MICRO) |
|
106 |
|
107 define TARBALL_MICRO_DEPS |
|
108 .bashrc .env.bash .bash_completion \ |
|
109 .gitconfig \ |
|
110 .inputrc .dircolors |
|
111 endef |
|
112 |
|
113 $(TARBALL_MICRO): $(TARBALL_MICRO_DEPS) |
|
114 tar zcf $(TARBALL_MICRO) $(TARBALL_MICRO_DEPS) |
|
115 |
101 ################################################################ |
116 ################################################################ |
102 # Install/uninstall targets. |
117 # Install/uninstall targets. |
103 |
118 |
104 # Essential rc files. |
119 # Essential rc files. |
105 .PHONY: install-mini |
120 .PHONY: install-mini |
106 .ONESHELL: |
121 .ONESHELL: |
107 install-mini: |
122 install-mini: |
108 $(INSTALL_DATA) -t $(HOME) ${TARBALL_MINI_DEPS} |
123 $(INSTALL_DATA) -t $(HOME) ${TARBALL_MINI_DEPS} |
|
124 |
|
125 # Without personal info. |
|
126 .PHONY: install-micro |
|
127 .ONESHELL: |
|
128 install-micro: |
|
129 $(INSTALL_DATA) -t $(HOME) ${TARBALL_MICRO_DEPS} |
109 |
130 |
110 .PHONY: install |
131 .PHONY: install |
111 .ONESHELL: |
132 .ONESHELL: |
112 install: |
133 install: |
113 declare -a files |
134 declare -a files |