Skip to content

Commit 8092baf

Browse files
committed
Build without filenames in Makefile.
(#4)
1 parent de0f0bf commit 8092baf

File tree

4 files changed

+12
-89
lines changed

4 files changed

+12
-89
lines changed

Makefile

+12-12
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,25 @@ clean:
2222
install: install-lib install-man
2323

2424
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
2928

3029
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)/__
3332

3433
uninstall: uninstall-lib uninstall-man
3534

3635
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
4139

4240
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
4544

4645
build: build-deb build-pypi
4746

@@ -80,6 +79,7 @@ deploy-pypi:
8079
man:
8180
find man -name \*.ronn | xargs -n1 ronn \
8281
--manual="python-cloudformation" --organization=DevStructure --style=toc
82+
find man -name \*.[12345678] | xargs gzip
8383

8484
gh-pages: man
8585
mkdir -p gh-pages
File renamed without changes.

man/man7/python-cloudformation.7

-77
This file was deleted.

man/man7/python-cloudformation.7.gz

1.46 KB
Binary file not shown.

0 commit comments

Comments
 (0)