Source

irc / Makefile

Full commit
jrosdahl e90aaab 
jrosdahl c93db87 
jrosdahl 5969631 










jrosdahl 1585dbc 
jrosdahl 5969631 

jrosdahl 1585dbc 
jrosdahl 5969631 


jrosdahl 7708a44 
jrosdahl c93db87 
jrosdahl e90aaab 
jrosdahl 700ef06 
jrosdahl e90aaab 

jrosdahl 700ef06 
jrosdahl 7708a44 

jrosdahl 5969631 


jrosdahl 18ee29b 

jrosdahl c93db87 

jrosdahl e90aaab 
jrosdahl c93db87 

jrosdahl d49ca19 
jrosdahl 0f6d029 
VERSION := `sed -n -e '/VERSION = /{s/VERSION = \(.*\), \(.*\), \(.*\)/\1.\2.\3/;p;}' <irclib.py`

DISTFILES = \
    COPYING \
    ChangeLog \
    Makefile \
    README \
    dccreceive \
    dccsend \
    ircbot.py \
    irccat \
    irccat2 \
    irclib.py \
    python-irclib.spec \
    servermap \
    setup.py \
    testbot.py

PACKAGENAME = python-irclib-$(VERSION)

all: $(DISTFILES)

setup.py: setup.py.in
	sed 's/%%VERSION%%/'$(VERSION)'/g' setup.py.in >setup.py

python-irclib.spec: python-irclib.spec.in
	sed 's/%%VERSION%%/'$(VERSION)'/g' python-irclib.spec.in >python-irclib.spec

dist: $(DISTFILES)
	mkdir $(PACKAGENAME)
	cp -r $(DISTFILES) $(PACKAGENAME)
	tar cvzf $(PACKAGENAME).tar.gz $(PACKAGENAME)
	zip -r9yq $(PACKAGENAME).zip $(PACKAGENAME)
	rm -rf $(PACKAGENAME)

cvstag:
	ver=$(VERSION); echo cvs tag version_`echo $$ver | sed 's/\./_/g'`

clean:
	rm -rf *~ *.pyc build python-irclib.spec setup.py

.PHONY: all doc dist cvstag clean