Mercurial > hgrepos > Python > apps > py-cutils
annotate Makefile @ 371:29a301ff2501
treesum: FIX: also check for TABs when trying to encode strictly
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 12 Apr 2025 09:05:48 +0200 |
| parents | bbfcdbd75bfe |
| children |
| rev | line source |
|---|---|
|
363
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
1 # dev and build helper |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 # :- |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
3 # SPDX-FileCopyrightText: © 2025 Franz Glasner |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
4 # SPDX-License-Identifier: BSD-3-Clause |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 # :- |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
6 |
|
364
bbfcdbd75bfe
Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents:
363
diff
changeset
|
7 .PHONY: help clean export-for-dist build distclean dist |
|
bbfcdbd75bfe
Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents:
363
diff
changeset
|
8 |
|
bbfcdbd75bfe
Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents:
363
diff
changeset
|
9 help: |
|
bbfcdbd75bfe
Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents:
363
diff
changeset
|
10 @echo Targets: clean, export-for-dist, build, distclean and dist |
|
bbfcdbd75bfe
Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents:
363
diff
changeset
|
11 |
|
363
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 clean: |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
13 rm -rf __arch/ |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 find . -name '*.pyc' -delete |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
16 export-for-dist: clean |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
17 hg kwarchive __arch |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
18 |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
19 build: |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
20 python setup.py sdist bdist_wheel |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
21 python _postprocess-sdist.py |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
22 gzip dist/*tar |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
23 |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
24 distclean: clean |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
25 # package build information |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
26 rm -rf build/ dist/ src/*.egg-info |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
27 |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
28 # Full clean build for sdist, wheel and docs |
|
f9064130af74
Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
29 dist: distclean build |
