2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:59 +01:00
|
|
|
# $Id: Makefile,v 1.35 2010/08/15 11:18:38 gilles Exp gilles $
|
2011-03-12 03:39:59 +01:00
|
|
|
|
|
|
|
.PHONY: help usage all
|
|
|
|
|
|
|
|
help: usage
|
|
|
|
|
|
|
|
usage:
|
2011-03-12 03:44:57 +01:00
|
|
|
@echo " imapsync $(VERSION), You can do :"
|
2011-03-12 03:44:47 +01:00
|
|
|
@echo "make install # as root"
|
|
|
|
@echo "make testf # run tests"
|
|
|
|
@echo "make testv # run tests verbosely"
|
2011-03-12 03:44:51 +01:00
|
|
|
@echo "make test3xx # run tests with (last) Mail-IMAPClient-3.xy"
|
2011-03-12 03:44:47 +01:00
|
|
|
@echo "make test229 # run tests with Mail-IMAPClient-2.2.9"
|
|
|
|
@echo "make all "
|
2011-03-12 03:44:59 +01:00
|
|
|
@echo "make upload_index"
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
DIST_NAME=imapsync-$(VERSION)
|
|
|
|
DIST_FILE=$(DIST_NAME).tgz
|
|
|
|
DEB_FILE=$(DIST_NAME).deb
|
|
|
|
VERSION=$(shell perl -I./Mail-IMAPClient-2.2.9 ./imapsync --version)
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-12 03:43:45 +01:00
|
|
|
all: ChangeLog README VERSION
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:51 +01:00
|
|
|
.PHONY: test tests testp testf test3xx
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
.test: imapsync tests.sh
|
2011-03-12 03:44:47 +01:00
|
|
|
/usr/bin/time sh tests.sh 1>/dev/null
|
2011-03-12 03:39:59 +01:00
|
|
|
touch .test
|
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
.test_3xx: imapsync tests.sh
|
2011-03-12 03:44:53 +01:00
|
|
|
CMD_PERL='perl -I./Mail-IMAPClient-3.25/lib' /usr/bin/time sh tests.sh 1>/dev/null
|
2011-03-12 03:44:47 +01:00
|
|
|
touch .test_3xx
|
|
|
|
|
|
|
|
test_quick : test_quick_229 test_quick_3xx
|
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
test_quick_229: imapsync tests.sh
|
2011-03-12 03:44:47 +01:00
|
|
|
CMD_PERL='perl -I./Mail-IMAPClient-2.2.9' /usr/bin/time sh tests.sh locallocal 1>/dev/null
|
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
test_quick_3xx: imapsync tests.sh
|
2011-03-12 03:44:53 +01:00
|
|
|
CMD_PERL='perl -I./Mail-IMAPClient-3.25/lib' /usr/bin/time sh tests.sh locallocal 1>/dev/null
|
2011-03-12 03:44:47 +01:00
|
|
|
|
2011-03-12 03:39:59 +01:00
|
|
|
testv:
|
2011-03-12 03:44:22 +01:00
|
|
|
nice -40 sh -x tests.sh
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:47 +01:00
|
|
|
test: .test_229 .test_3xx
|
|
|
|
|
2011-03-12 03:44:51 +01:00
|
|
|
tests: test
|
2011-03-12 03:44:47 +01:00
|
|
|
|
|
|
|
test3xx: .test_3xx
|
|
|
|
|
|
|
|
test229: .test_229
|
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
.test_229: imapsync tests.sh
|
2011-03-12 03:44:47 +01:00
|
|
|
CMD_PERL='perl -I./Mail-IMAPClient-2.2.9' /usr/bin/time sh tests.sh 1>/dev/null
|
|
|
|
touch .test_229
|
2011-03-12 03:39:59 +01:00
|
|
|
|
|
|
|
testf: clean_test test
|
|
|
|
|
|
|
|
testp :
|
2011-03-12 03:44:57 +01:00
|
|
|
perl -c imapsync
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
ChangeLog: imapsync
|
|
|
|
rlog imapsync > ChangeLog
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
README: imapsync
|
|
|
|
perldoc -t imapsync > README
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
VERSION: imapsync Makefile
|
|
|
|
perl -I./Mail-IMAPClient-2.2.9 ./imapsync --version > VERSION
|
2011-03-12 03:40:54 +01:00
|
|
|
|
2011-03-12 03:39:59 +01:00
|
|
|
.PHONY: clean clean_tilde clean_test
|
|
|
|
|
2011-03-12 03:44:47 +01:00
|
|
|
clean: clean_tilde clean_man
|
2011-03-12 03:39:59 +01:00
|
|
|
|
|
|
|
clean_test:
|
2011-03-12 03:44:48 +01:00
|
|
|
rm -f .test .test_3xx .test_229
|
2011-03-12 03:39:59 +01:00
|
|
|
|
|
|
|
clean_tilde:
|
|
|
|
rm -f *~
|
|
|
|
|
2011-03-12 03:44:29 +01:00
|
|
|
.PHONY: install dist man
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
man: imapsync.1
|
2011-03-12 03:44:29 +01:00
|
|
|
|
|
|
|
clean_man:
|
2011-03-12 03:44:57 +01:00
|
|
|
rm -f imapsync.1
|
2011-03-12 03:44:29 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
imapsync.1: imapsync
|
|
|
|
pod2man imapsync > imapsync.1
|
2011-03-12 03:44:29 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
install: testp imapsync.1
|
|
|
|
install -D imapsync $(DESTDIR)/usr/bin/imapsync
|
|
|
|
install -D imapsync.1 $(DESTDIR)/usr/share/man/man1/imapsync.1
|
|
|
|
chmod 755 $(DESTDIR)/usr/bin/imapsync
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:29 +01:00
|
|
|
|
2011-03-12 03:44:47 +01:00
|
|
|
dist: cidone test clean clean_dist all INSTALL tarball
|
|
|
|
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:47 +01:00
|
|
|
tarball:
|
2011-03-12 03:39:59 +01:00
|
|
|
echo making tarball $(DIST_FILE)
|
|
|
|
mkdir -p dist
|
|
|
|
mkdir -p ../prepa_dist/$(DIST_NAME)
|
2011-03-12 03:44:57 +01:00
|
|
|
rsync -aCv --delete --omit-dir-times --exclude dist/ ./ ../prepa_dist/$(DIST_NAME)
|
2011-03-12 03:44:49 +01:00
|
|
|
cd ../prepa_dist && (tar czfv $(DIST_FILE) $(DIST_NAME) || tar czfv $(DIST_FILE) $(DIST_NAME))
|
2011-03-12 03:44:34 +01:00
|
|
|
ln -f ../prepa_dist/$(DIST_FILE) dist/
|
|
|
|
cd dist && md5sum $(DIST_FILE) > $(DIST_FILE).md5.txt
|
|
|
|
cd dist && md5sum -c $(DIST_FILE).md5.txt
|
2011-03-12 03:39:59 +01:00
|
|
|
|
|
|
|
|
2011-03-12 03:44:13 +01:00
|
|
|
deb:
|
|
|
|
echo making debball $(DEB_FILE)
|
|
|
|
mkdir -p ../prepa_deb
|
2011-03-12 03:44:48 +01:00
|
|
|
cd ../prepa_deb && tar xzvf ../prepa_dist/$(DIST_FILE) &&\
|
2011-03-12 03:44:13 +01:00
|
|
|
cd ../prepa_dist/$(DIST_NAME)
|
|
|
|
|
2011-03-12 03:39:59 +01:00
|
|
|
.PHONY: cidone clean_dist
|
|
|
|
|
|
|
|
cidone:
|
|
|
|
rcsdiff RCS/*
|
|
|
|
|
|
|
|
clean_dist:
|
2011-03-12 03:44:34 +01:00
|
|
|
echo Used to be 'rm -f dist/*'
|
2011-03-12 03:39:59 +01:00
|
|
|
|
|
|
|
# Local goals
|
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
.PHONY: lfo upload_lfo niouze_lfo niouze_fm public
|
|
|
|
|
|
|
|
upload_index: index.shtml
|
|
|
|
rsync -avH index.shtml \
|
|
|
|
/home/gilles/public_html/www.linux-france.org/html/prj/imapsync/
|
|
|
|
sh ~/memo/lfo-rsync
|
|
|
|
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
lfo: dist niouze_lfo upload_lfo
|
2011-03-12 03:44:29 +01:00
|
|
|
|
2011-03-12 03:44:57 +01:00
|
|
|
upload_lfo:
|
2011-03-12 03:44:35 +01:00
|
|
|
rsync -avH --delete . \
|
2011-03-12 03:44:57 +01:00
|
|
|
/home/gilles/public_html/www.linux-france.org/html/prj/imapsync/
|
2011-03-12 03:44:35 +01:00
|
|
|
rsync -avH --delete ../prepa_dist/imapsync-*tgz \
|
2011-03-12 03:44:57 +01:00
|
|
|
/home/gilles/public_html/www.linux-france.org/ftp/prj/imapsync/
|
2011-03-12 03:39:59 +01:00
|
|
|
sh ~/memo/lfo-rsync
|
|
|
|
|
2011-03-12 03:44:32 +01:00
|
|
|
niouze_lfo : VERSION
|
2011-03-12 03:43:54 +01:00
|
|
|
. memo && lfo_announce
|
2011-03-12 03:44:32 +01:00
|
|
|
|
2011-03-12 03:44:50 +01:00
|
|
|
niouze_fm: VERSION
|
2011-03-12 03:44:21 +01:00
|
|
|
. memo && fm_announce
|
2011-03-12 03:44:29 +01:00
|
|
|
|
|
|
|
|
2011-03-12 03:44:50 +01:00
|
|
|
public: niouze_fm
|