@@ -22,26 +22,25 @@ clean:
22
22
install : install-lib install-man
23
23
24
24
install-lib :
25
- install -d $(DESTDIR )$(pydir ) /
26
- install -m644 cloudformation.py $(DESTDIR )$(pydir ) /
27
- PYTHONPATH=$(DESTDIR )$(pydir ) $(PYTHON ) -mcompileall \
28
- $(DESTDIR )$(pydir ) /cloudformation.py
25
+ find cloudformation -type d -printf %P\\ 0 | xargs -0r -I__ install -d $(DESTDIR )$(pydir ) /cloudformation/__
26
+ find cloudformation -type f -name \* .py -printf %P\\ 0 | xargs -0r -I__ install -m644 cloudformation/__ $(DESTDIR )$(pydir ) /cloudformation/__
27
+ PYTHONPATH=$(DESTDIR )$(pydir ) $(PYTHON ) -mcompileall $(DESTDIR )$(pydir ) /cloudformation
29
28
30
29
install-man :
31
- install -d $(DESTDIR )$(mandir ) /man7
32
- install -m644 man/man7/python-cloudformation.7 $(DESTDIR )$(mandir ) /man7/
30
+ find man -type d -printf %P \\ 0 | xargs -0r -I__ install -d $(DESTDIR )$(mandir ) /__
31
+ find man -type f -name \* .[12345678].gz -printf %P \\ 0 | xargs -0r -I__ install -m644 man/__ $(DESTDIR )$(mandir ) /__
33
32
34
33
uninstall : uninstall-lib uninstall-man
35
34
36
35
uninstall-lib :
37
- rm -f \
38
- $(DESTDIR )$(pydir ) /cloudformation.py \
39
- $(DESTDIR )$(pydir ) /cloudformation.pyc
40
- rmdir -p --ignore-fail-on-non-empty $(DESTDIR )$(pydir )
36
+ find cloudformation -type f -name \* .py -printf %P\\ 0 | xargs -0r -I__ rm -f $(DESTDIR )$(pydir ) /cloudformation/__ $(DESTDIR )$(pydir ) /cloudformation/__c
37
+ find cloudformation -depth -mindepth 1 -type d -printf %P\\ 0 | xargs -0r -I__ rmdir $(DESTDIR )$(pydir ) /cloudformation/__ || true
38
+ rmdir -p --ignore-fail-on-non-empty $(DESTDIR )$(pydir ) /cloudformation || true
41
39
42
40
uninstall-man :
43
- rm -f $(DESTDIR )$(mandir ) /man7/python-cloudformation.7
44
- rmdir -p --ignore-fail-on-non-empty $(DESTDIR )$(mandir ) /man7
41
+ find man -type f -name \* .[12345678].gz -printf %P\\ 0 | xargs -0r -I__ rm -f $(DESTDIR )$(mandir ) /__
42
+ find man -depth -mindepth 1 -type d -printf %P\\ 0 | xargs -0r -I__ rmdir $(DESTDIR )$(mandir ) /__ || true
43
+ rmdir -p --ignore-fail-on-non-empty $(DESTDIR )$(mandir ) || true
45
44
46
45
build : build-deb build-pypi
47
46
@@ -80,6 +79,7 @@ deploy-pypi:
80
79
man :
81
80
find man -name \* .ronn | xargs -n1 ronn \
82
81
--manual=" python-cloudformation" --organization=DevStructure --style=toc
82
+ find man -name \* .[12345678] | xargs gzip
83
83
84
84
gh-pages : man
85
85
mkdir -p gh-pages
0 commit comments