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
::
10 $(info release
- clean up and create TAR
/ZIP release archives
)
11 $(info elpa
- clean up and create ELPA TAR archive
)
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_
%=%)
27 -@
$(RM
) $(ORGDIR
) $(ORGRTAR
) $(ORGRZIP
)
29 tar -zcf
$(ORGDIR
).
tar.gz
$(foreach dist, $(ORGFULL
), $(ORGDIR
)/$(dist))
30 zip
-r9
$(ORGDIR
).zip
$(foreach dist, $(ORGFULL
), $(ORGDIR
)/$(dist))
32 $(if
$(filter-out $(ORGVERSION
), $(GITVERSION
)), \
34 @echo ORGVERSION
=$(ORGVERSION
) GITVERSION
=$(GITVERSION
)
36 PKG_TAG
= $(shell date
+%Y
%m
%d
)
37 PKG_DOC
= "Outline-based notes management and organizer"
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
)
44 -@
$(RM
) $(ORGDIR
) $(ORGTAR
) $(ORGZIP
)
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
)), \
52 @echo ORGVERSION
=$(ORGVERSION
) GITVERSION
=$(GITVERSION
)
55 $(info ======================================================)
57 $(info = A release should only be made from a revision that
=)
58 $(info = has an annotated tag
! =)
60 $(info ======================================================)
65 $(RM
) org-7.
* org-20??????
*