1 AUTOMAKE_OPTIONS = 1.5 dist-bzip2
2 SUBDIRS = src data scripting utils doc
3 EXTRA_DIST = test INSTALL.fr devpatch.sh
5 dist-bzip2-sign : dist-bzip2
6 gpg --local-user syfou --armor --detach-sign $(PACKAGE)-$(VERSION).tar.bz2
9 find $(distdir)/test -name '*.pyc' -or -name '*~' -exec rm \{\} ';'
10 find $(distdir)/utils -name '*.pyc' -or -name '*~' -exec rm \{\} ';'
11 -find $(distdir) -type d -name 'SCCS' -exec rm -rf \{\} ';'
12 chmod -R u+w $(distdir)/*
18 INSTALL.% : doc/$(PACKAGE)_%.texi
19 TEXINFO_OUPUT_FORMAT=plaintext $(MAKEINFO) --no-headers $< -o - | sed -n '/INSTALL_BEG/,/INSTALL_END/p' | sed '1,2d' | sed -e :a -e '$$d;N;2,4ba' -e 'P;D' > $@
24 PREVIOUS_PACKAGE=./adesklets
27 tar xjf $(PACKAGE)-$(VERSION).tar.bz2
28 ln -sf $(PREVIOUS_PACKAGE) a
29 ln -sf $(PACKAGE)-$(VERSION) b
30 rm -rf echo $(PACKAGE)-$(VERSION)/{doc/{html/{en,fr,pydoc},*.info,*.1,version*,stamp*},INSTALL*,aclocal.m4,configure,src/{config.h.in,command_enum.h}}
31 find $(PACKAGE)-$(VERSION)/ -name 'Makefile.in' -exec rm \{\} ';'
32 ./devpatch.sh $(PREVIOUS_PACKAGE) > tmp.diff
33 diff --minimal --unidirectional-new-file -u --recursive a b | sed '/^Only in a[/:]/d' >> tmp.diff
35 @echo '-----------------------------------------------------------'
36 @echo "diff file: `sed -n '2{s/^[^\t]*[[:space:]]//;p}' tmp.diff`"
37 @echo '-----------------------------------------------------------'
38 mv tmp.diff `sed -n '2{s/^[^\t]*[[:space:]]//;p}' tmp.diff`