1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
# this is the version number :-)
PACKAGE = libsieve
VERSION = 2.2.6
SOURCES = src
DOCS = www rfc
OTHERS = AUTHORS COPYING NEWS README Makefile
all:
@echo "This is the top level Makefile, which does three things:"
@echo
@echo "1. Makes releases, with the command 'make release'"
@echo "2. Makes tarballs, with the command 'make snapshot'"
@echo "3. Explains that to actually compile something, do this:"
@echo " cd src && ./configure && make"
@echo
@echo
@echo "Please read over the documentation in the top level, too!"
@echo
# a rule to make snapshots
snapshot: $(SOURCES) $(DOCS) $(OTHERS)
@echo
@echo "->Note: The version for now is hacked into Makefile as: " $(VERSION)
@echo
@echo "->Copying all release files to the directory: " $(PACKAGE)-$(VERSION)
@echo
-mkdir $(PACKAGE)-$(VERSION)
-cp -pr $(SOURCES) $(DOCS) $(OTHERS) $(PACKAGE)-$(VERSION)
@echo
@echo "->Making the compressed tar file " $(PACKAGE)-$(VERSION).tar.gz
@echo
-tar cf - $(PACKAGE)-$(VERSION) | gzip > $(PACKAGE)-$(VERSION).tar.gz
@echo
@echo "->Removing the temporary directory: " $(PACKAGE)-$(VERSION)
@echo
-rm -rf $(PACKAGE)-$(VERSION)
@echo
release: $(SOURCES) $(OTHERS)
@echo
@echo "->Making release for version: " $(VERSION)
@echo
@echo "->Copying all files to the directory: " $(PACKAGE)-$(VERSION)
@echo
-mkdir $(PACKAGE)-$(VERSION)
-cp -pr $(SOURCES) $(OTHERS) $(PACKAGE)-$(VERSION)
@echo
@echo "->Removing SVN control files: " $(PACKAGE)-$(VERSION)/.svn " " $(PACKAGE)-$(VERSION)/*/.svn
@echo
-rm -fr $(PACKAGE)-$(VERSION)/.svn $(PACKAGE)-$(VERSION)/*/.svn $(PACKAGE)-$(VERSION)/*/*/.svn
@echo
@echo "->Bootstrapping autotools: " $(PACKAGE)-$(VERSION)/src/bootstrap
@echo
-cd $(PACKAGE)-$(VERSION)/src/ && autoreconf -f -i
@echo
@echo "->Removing autotools cache: " $(PACKAGE)-$(VERSION)/autom4te.cache
@echo
-rm -fr $(PACKAGE)-$(VERSION)/src/autom4te.cache
@echo
@echo "->Making the compressed tar file " $(PACKAGE)-$(VERSION).tar.gz
@echo
-tar cf - $(PACKAGE)-$(VERSION) | gzip > $(PACKAGE)-$(VERSION).tar.gz
@echo
@echo "->Removing the temporary directory: " $(PACKAGE)-$(VERSION)
@echo
-rm -rf $(PACKAGE)-$(VERSION)
@echo
|