2005-11-21 19:21:25 +01:00
|
|
|
#
|
|
|
|
# gpodder makefile
|
2006-02-05 08:47:11 +01:00
|
|
|
# copyright 2005-2006 thomas perl <thp@perli.net>
|
2005-11-21 19:21:25 +01:00
|
|
|
# released under the gnu gpl
|
|
|
|
#
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
BINFILE=bin/gpodder
|
|
|
|
GLADEFILE=data/gpodder.glade
|
|
|
|
GUIFILE=src/gpodder/gpodder.py
|
|
|
|
MANPAGE=doc/man/gpodder.man.1
|
2006-02-05 08:47:11 +01:00
|
|
|
TEPACHE=./doc/dev/tepache
|
2005-11-21 19:21:25 +01:00
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
2005-11-21 21:09:52 +01:00
|
|
|
all:
|
2005-11-21 19:21:25 +01:00
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
2005-11-21 21:09:52 +01:00
|
|
|
test:
|
2005-11-21 19:21:25 +01:00
|
|
|
$(BINFILE) --debug
|
|
|
|
|
2005-11-22 14:57:08 +01:00
|
|
|
deb:
|
|
|
|
@echo "##########################################################################"
|
|
|
|
@echo "# This is still alpha, see doc/dev/debian.txt for more info. #"
|
|
|
|
@echo "##########################################################################"
|
|
|
|
python setup.py bdist_deb --maintainer "Peter Hoffmann <tosh@cs.tu-berlin.de>" --extra-depends "python-gtk2, python-glade2, python-xml, wget"
|
|
|
|
|
2005-11-21 19:21:25 +01:00
|
|
|
release: generators
|
|
|
|
python setup.py sdist
|
|
|
|
|
|
|
|
install: generators
|
|
|
|
python setup.py install
|
|
|
|
|
2005-12-02 15:03:42 +01:00
|
|
|
uninstall:
|
|
|
|
@echo "##########################################################################"
|
|
|
|
@echo "# MAKE UNINSTALL STILL NOT READY FOR PRIME TIME, WILL DO MY BEST TO #"
|
|
|
|
@echo "# REMOVE FILES INSTALLED BY GPODDER. WATCH INSTALL PROCESS AND REMOVE #"
|
|
|
|
@echo "# THE REST OF THE PACKAGES MANUALLY TO COMPLETELY REMOVE GPODDER. #"
|
|
|
|
@echo "##########################################################################"
|
|
|
|
rm -rf /usr/share/gpodder /usr/share/applications/gpodder.desktop /usr/share/man/man1/gpodder.man.1 /usr/bin/gpodder /usr/lib/python?.?/site-packages/gpodder/
|
|
|
|
|
2005-11-21 19:21:25 +01:00
|
|
|
##########################################################################
|
|
|
|
|
2006-02-05 08:47:11 +01:00
|
|
|
generators: $(MANPAGE) gen_glade
|
2005-11-21 19:21:25 +01:00
|
|
|
|
2006-02-05 08:47:11 +01:00
|
|
|
$(MANPAGE): $(BINFILE)
|
|
|
|
help2man -N $(BINFILE) >$(MANPAGE)
|
2005-11-21 19:21:25 +01:00
|
|
|
|
|
|
|
gen_glade: $(GLADEFILE)
|
2006-02-05 08:47:11 +01:00
|
|
|
$(TEPACHE) --no-helper --glade=$(GLADEFILE) --output=$(GUIFILE)
|
2005-11-21 19:21:25 +01:00
|
|
|
chmod -x $(GUIFILE) $(GUIFILE).orig
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
clean:
|
|
|
|
python setup.py clean
|
2006-02-05 08:47:11 +01:00
|
|
|
rm -f src/gpodder/*.pyc src/gpodder/*.bak MANIFEST PKG-INFO data/gpodder.gladep{,.bak} data/gpodder.glade.bak
|
2005-11-21 19:21:25 +01:00
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -rf dist
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
.PHONY: all test release install generators gen_manpage gen_glade clean distclean
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
|