mirror of
https://github.com/imapsync/imapsync.git
synced 2024-11-17 00:02:29 +01:00
103 lines
1.8 KiB
Makefile
103 lines
1.8 KiB
Makefile
|
|
# $Id: Makefile,v 1.8 2006/02/28 03:55:01 gilles Exp gilles $
|
|
|
|
TARGET=imapsync
|
|
|
|
.PHONY: help usage all
|
|
|
|
help: usage
|
|
|
|
usage:
|
|
@echo " $(TARGET) $(VERSION), You can do :"
|
|
@echo make install # as root
|
|
@echo make testf # run tests
|
|
@echo make testv # run tests verbosely
|
|
@echo make all
|
|
|
|
all: ChangeLog README VERSION
|
|
|
|
.PHONY: test testp testf
|
|
|
|
.test: $(TARGET) tests.sh
|
|
sh tests.sh 1>/dev/null
|
|
touch .test
|
|
|
|
testv:
|
|
sh -x tests.sh
|
|
|
|
test: .test
|
|
|
|
testf: clean_test test
|
|
|
|
testp :
|
|
perl -c $(TARGET)
|
|
|
|
ChangeLog: $(TARGET)
|
|
rlog $(TARGET) > ChangeLog
|
|
|
|
README: $(TARGET)
|
|
perldoc -t $(TARGET) > README
|
|
|
|
VERSION: $(TARGET) Makefile
|
|
./$(TARGET) --version > VERSION
|
|
|
|
.PHONY: clean clean_tilde clean_test
|
|
|
|
clean: clean_tilde clean_test
|
|
|
|
clean_test:
|
|
rm -f .test
|
|
|
|
clean_tilde:
|
|
rm -f *~
|
|
|
|
.PHONY: install dist
|
|
|
|
install: testp
|
|
cp $(TARGET) $(DESTDIR)/usr/bin/$(TARGET)
|
|
chmod 755 $(DESTDIR)/usr/bin/$(TARGET)
|
|
|
|
DIST_NAME=$(TARGET)-$(VERSION)
|
|
DIST_FILE=$(DIST_NAME).tgz
|
|
DEB_FILE=$(DIST_NAME).deb
|
|
VERSION=$(shell ./$(TARGET) --version)
|
|
|
|
dist: cidone test clean clean_dist all INSTALL
|
|
echo making tarball $(DIST_FILE)
|
|
mkdir -p dist
|
|
mkdir -p ../prepa_dist/$(DIST_NAME)
|
|
rsync -aCv --delete ./ ../prepa_dist/$(DIST_NAME)
|
|
cd ../prepa_dist && tar czfv $(DIST_FILE) $(DIST_NAME)
|
|
cp -f ../prepa_dist/$(DIST_FILE) dist/
|
|
cd dist && md5sum $(DIST_FILE) > $(DIST_FILE).md5
|
|
cd dist && md5sum -c $(DIST_FILE).md5
|
|
|
|
|
|
deb:
|
|
echo making debball $(DEB_FILE)
|
|
mkdir -p ../prepa_deb
|
|
cd ../prepa_deb && tar xzvf ../prepa_dist/$(DIST_FILE) &&\
|
|
cd ../prepa_dist/$(DIST_NAME)
|
|
|
|
.PHONY: cidone clean_dist
|
|
|
|
cidone:
|
|
rcsdiff RCS/*
|
|
|
|
clean_dist:
|
|
rm -f dist/*
|
|
|
|
# Local goals
|
|
|
|
.PHONY: lfo niouze
|
|
|
|
lfo: dist niouze
|
|
rsync -av --delete . \
|
|
/home/gilles/public_html/www.linux-france.org/html/prj/$(TARGET)/
|
|
sh ~/memo/lfo-rsync
|
|
|
|
|
|
niouze: VERSION
|
|
. memo && lfo_announce
|
|
. memo && fm_announce
|