File: Makefile

package info (click to toggle)
mh-e 7.82-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,596 kB
  • ctags: 1,180
  • sloc: lisp: 16,919; makefile: 336; sh: 157; perl: 34
file content (106 lines) | stat: -rw-r--r-- 2,229 bytes parent folder | download
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# $Id: Makefile,v 1.12 2003/09/24 22:50:44 wohler Exp $
#
# Makefile for MH-E documentation.
#
# Note: most changes to this file should also be mirrored in the Makefiles in
# $(TOP)/src and $(TOP)/contrib.
#
TOP		= ..

EMACS_HOME	?= $(TOP)/../emacs

MH-E-DOC	= mh-e.texi

MH-E-DOCS	=			\
	README				\
	Makefile			\
	fixhtml				\
	index.html			\
	indexes.html

ONLINE_DIR	=  /home/mh/public_ftp/book/mh-e

MAKEINFOINFOFLAGS =

MAKEINFOHTMLFLAGS = --html --output html

#
# User Targets
#

all: clean mh-e.info mh-e.html 

clean:
	rm -rf info html dvi

mh-e.info: mh-e.texi info
	makeinfo $(MAKEINFOINFOFLAGS) $<

mh-e.html: mh-e.texi
	makeinfo $(MAKEINFOHTMLFLAGS) $< && \
	cd html && ../fixhtml

mh-e.dvi: mh-e.texi dvi
	cd dvi && \
	texi2dvi ../$<

mh-e.ps: mh-e.dvi
	cd dvi && \
	dvips -o $@ $<

#
# Maintainer Targets
#

# Create a distribution. 
dist:
	@echo "Determining release..."
	@TAG=`cvs stat Makefile | awk '/Sticky Tag/{print $$3}'`; \
        if [ "$$TAG" = "(none)" ]; then \
            echo "No sticky tags here. Do a 'cvs update -rmh-e-doc-M_N'."; \
            exit 1; \
        fi; \
        RELEASE=`echo $$TAG | sed 's/_/./g'`; \
	echo "Building $$RELEASE..."; \
        rm -rf $$RELEASE; \
        mkdir $$RELEASE; \
        cp $(MH-E-DOC) $(MH-E-DOCS) $$RELEASE; \
        tar -czhf $$RELEASE.tgz $$RELEASE


# Installation Targets
install:
	@echo "Available targets: install-emacs install-online"

# Install the documentation into the Emacs manual.
install-emacs:
	@echo "Have you first updated $(EMACS_HOME)/man/mh-e.texi and patched"
	@echo "any remote updates into $(MH-E-DOC)? "
	@echo -n "Hit return to continue; C-c to abort: "
	@read
	cp $(MH-E-DOC) $(EMACS_HOME)/man

# Install the documentation into the online Web space at UCI
# (http://www.ics.uci.edu/~mh/book/mh-e/). This must be run as the MH user.
# Use "gsu mh".
install-online: 
	@echo "Has make mh-e.html already been run as a non-MH user?"
	@echo "Are you now the MH user (via gsu mh)?"
	@echo -n "Hit return to continue; C-c to abort: "
	@read
	cd html			&& \
	rm -rf $(ONLINE_DIR)/*	&& \
	cp * $(ONLINE_DIR)/

# Imports Emacs changes.
import-emacs:
	@echo "Not implemented yet."

#
# Directories
#
info:
	mkdir info

dvi:
	mkdir dvi