server.mk: include the full utils/ directory for now
[org-mode.git] / utils / server.mk
blobf736f6adbb4126edf1ff50ff961afdb1edbaef46
1 #----------------------------------------------------------------------
2 # This file is used for maintenance of org on the server.
3 #----------------------------------------------------------------------
4 .PHONY: helpserver release rel-dirty cleanrel tagwarn
6 help helpall helpserver::
7 $(info )
8 $(info Maintenance)
9 $(info ===========)
10 $(info release - clean up and create TAR/ZIP release archives)
11 $(info elpa - clean up and create ELPA TAR archive)
12 helpserver::
13 @echo ""
15 #----------------------------------------------------------------------
17 ORGCOMM = README request-assign-future.txt lisp/ doc/
18 ORGFULL = $(ORGCOMM) Makefile default.mk targets.mk etc/ contrib/ utils/
19 ORGFULL := $(ORGFULL:%/=%/*)
20 ORGELPA = $(ORGCOMM) etc/styles/ org-pkg.el
21 ORGELPA := $(ORGELPA:%/=%/*)
23 release: ORG_MAKE_DOC=info pdf card # do not make HTML documentation
24 release: cleanall doc autoloads rel-dirty
25 rel-dirty: ORGDIR=org-$(GITVERSION:release_%=%)
26 rel-dirty:
27 -@$(RM) $(ORGDIR) $(ORGRTAR) $(ORGRZIP)
28 ln -s . $(ORGDIR)
29 tar -zcf $(ORGDIR).tar.gz $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist))
30 zip -r9 $(ORGDIR).zip $(foreach dist, $(ORGFULL), $(ORGDIR)/$(dist))
31 -@$(RM) $(ORGDIR)
32 $(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
33 @$(MAKE) tagwarn)
34 @echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)
36 PKG_TAG = $(shell date +%Y%m%d)
37 PKG_DOC = "Outline-based notes management and organizer"
38 PKG_REQ = "nil"
40 elpa: ORG_MAKE_DOC=info pdf card # do not make HTML documentation
41 elpa: cleanall doc elpa-dirty
42 elpa-dirty: ORGDIR=org-$(PKG_TAG)
43 elpa-dirty: autoloads
44 -@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP)
45 ln -s . $(ORGDIR)
46 echo "(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" >org-pkg.el
47 tar --exclude=Makefile --xform='s:\(lisp\|doc\)/::' -cf $(ORGDIR).tar \
48 $(foreach dist, $(ORGELPA), $(ORGDIR)/$(dist))
49 -@$(RM) $(ORGDIR) org-pkg.el
50 $(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
51 @$(MAKE) tagwarn)
52 @echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)
54 tagwarn:
55 $(info ======================================================)
56 $(info = =)
57 $(info = A release should only be made from a revision that =)
58 $(info = has an annotated tag! =)
59 $(info = =)
60 $(info ======================================================)
61 @echo ""
63 clean: cleanrel
64 cleanrel:
65 $(RM) org-7.* org-20??????*