Makefile 683 Bytes
Newer Older
Your Name's avatar
Your Name committed
1
DESTDIR=/
root's avatar
root committed
2
all: clean build
3 4 5 6

clean:
	`find | grep pycache | sed 's/^/rm -rf /g'`
	rm -rf build
7
	rm -f po/*.mo
8 9 10 11 12 13 14 15 16 17

pot:
	xgettext --language=Python --keyword=_ --output=inary.pot \
            `find inary -type f -iname "*.py"` inary-cli
	for file in `ls po/*.po`; do \
	    msgmerge $$file inary.pot -o $$file.new ; \
	    rm -f $$file ; \
	    mv $$file.new $$file ; \
	done \

18 19 20
build:
	python3 setup.py build
install:
21
	mkdir -p ${DESTDIR}/usr/bin/ ${DESTDIR}/usr/lib/sulin || true
22
	python3 setup.py install --install-lib=${DESTDIR}/usr/lib/sulin --root=${DESTDIR} --install-scripts=${DESTDIR}/usr/bin
Your Name's avatar
Your Name committed
23
	[ -f ${DESTDIR}/usr/bin/inary ] || ln -s inary-cli ${DESTDIR}/usr/bin/inary || true