GUI editor to tame mod_security rules

⌈⌋ ⎇ branch:  modseccfg


Artifact [5df5ed3151]

Artifact 5df5ed3151b4a3b5385307e00a87283158fd00ca36c2c201de174dcfa0e4d6ce:

  • Executable file Makefile — part of check-in [a7de0f8780] at 2022-10-21 22:50:25 on branch trunk — comment fixes (user: mario size: 1257)

#!/usr/bin/make

run:
	python3 -m modseccfg
setup:
	version --read modseccfg/__init__.py --write modseccfg/mainwindow.py --write:_raw_ manpage/*md
	pandoc README.md -o README.rst
	python3 setup.py bdist_wheel
	rm -r modseccfg.egg-info
upload: setup
	python3 setup.py bdist_wheel upload
	rm -r modseccfg.egg-info
t:
	pytest -v -v -v -v
profile:
	python3 -m cProfile -o profile_data.pyprof -m modseccfg
	pyprof2calltree -i profile_data.pyprof -k

logfmt1: deb whl
deb:
	cd logfmt1 ; xpm -f -s src -t deb  -n python3-logfmt1 logfmt1.py
	mv logfmt1/python3-logfmt1_*.deb .
	dpkg-deb -c python3-logfmt1_*.deb
deb_up:
	scp python3-logfmt1* io:apt/
whl:
	pandoc logfmt1/README.md -o logfmt1/README.rst
	cd logfmt1 && ./setup.py bdist_wheel
whl_up:
	twine upload dist/logfmt*
docs:
	pygmentize -S pastie -f html > logfmt1/docs/syntax.css
	cd logfmt1 ; PYTHONPATH=. mkdocs build -v -v -v
	sed -i 's/table\.docutils/table/g' logfmt1/html/css/theme.css 
	sed -i 's/[{};]/&\n/g' logfmt1/html/css/theme.css
%.1:	%.md
	pandoc --standalone -f markdown+pandoc_title_block -t man $< -o $@
%.5:	%.md
	pandoc --standalone -f markdown+pandoc_title_block -t man $< -o $@
man:	manpage/modseccfg.1 logfmt1/manpage/logex.1 logfmt1/manpage/update-logfmt.1 logfmt1/manpage/logfmt.5