File: server.mk

package info (click to toggle)
org-mode-doc 9.7.36-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 7,392 kB
  • sloc: lisp: 116,192; makefile: 262; perl: 229
file content (56 lines) | stat: -rw-r--r-- 1,923 bytes parent folder | download | duplicates (4)
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
#----------------------------------------------------------------
# This file is used to upload the Org documentation to the server
#----------------------------------------------------------------
.PHONY:	helpserver \
	doc-up \
	upload \
	tagwarn version

help helpserver::
	$(info )
	$(info Maintenance)
	$(info ===========)
	$(info upload              - clean up, populate the server with documentation)

helpserver::
	@echo ""

#----------------------------------------------------------------------

SERVROOT ?= upload
SERVERMK ?= true # or just any value at all, really

#----------------------------------------------------------------------

release:	cleanall info pdf card tagwarn

PKG_TAG = $(shell date +%Y%m%d)
PKG_DOC = "Outline-based notes management and organizer"
PKG_REQ = "" # marmalade chokes on explicit "nil"

tagwarn:
	$(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
	  $(info  ======================================================) \
	  $(info  =                                                    =) \
	  $(info  = A release should only be made from a revision that =) \
	  $(info  = has an annotated tag!                              =) \
	  $(info  =                                                    =) \
	  $(info  ======================================================))

version:
	@echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)$(ORGDIST)
	@echo "ORGVERSION	?= $(ORGVERSION)"  > mk/version.mk
	@echo "GITVERSION	?= $(GITVERSION)" >> mk/version.mk

doc-up:	info pdf card html
	$(MAKE) -C doc manual guide
	$(CP) doc/org.html           $(SERVROOT)
	$(CP) doc/orgcard.pdf        $(SERVROOT)
	$(CP) doc/orgcard_letter.pdf $(SERVROOT)
	$(CP) doc/org.pdf            $(SERVROOT)
	$(CP) doc/orgguide.html      $(SERVROOT)
	$(CP) doc/orgguide.pdf       $(SERVROOT)
	$(CP) doc/manual/*           $(SERVROOT)/manual
	$(CP) doc/guide/*            $(SERVROOT)/guide

upload:			cleanall doc-up