Menu

[r89]: / trunk / php-mode-src / Makefile  Maximize  Restore  History

Download this file

132 lines (87 with data), 3.1 kB

  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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/usr/bin/make -f
### php-mode.make -- Makefile for PHP mode for Emcs
## Copyright (C) 2008 Aaron S. Hawley
## Author: Aaron S. Hawley <ashawley at users sourceforge net>
## $Revision$
## $Date$
## X-URL: http://php-mode.sourceforge.net/
## This file is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; either version 3, or (at your
## option) any later version.
## This file is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with GNU Emacs; see the file COPYING. If not, write to the
## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
## Boston, MA 02110-1301, USA.
### Commentary:
## Build a release source distribution of PHP mode:
## $ make dist
## Build a PDF version of the manual:
## $ make php-mode.pdf
## Build a Postscript version of the manual:
## $ make php-mode.ps
## Build a device independent (DVI) version of the manual:
## $ make php-mode.ps
## Build an HTML version (monolothic and multi-page) of the manual:
## $ make php-mode.html
## Build an HTML monolothic and multi-page versions of the manual:
## $ make php-mode.html
## Build a GNU Info version of the manual:
## $ make php-mode.info
## Build a Gzipped version of any file by adding the .gz suffix:
## $ make php-mode.info.gz
## Build the manual in all the formats:
## $ make
### History:
## Written on January 3, 2008 in South Burlington, Vermont, USA.
### Code:
package = php-mode
version = 1.4.0
release = $(package)-$(version)
lisp_files = *.el
texi_files = *.texi
#info_files = *.info
#html_files = *.html
CCMODE_MANUAL = http://cc-mode.sourceforge.net/html-manual/
EMACS_MANUAL = http://emacswiki.org/cgi-bin/info-ref?find=
CP ?= cp -p
GZIP ?= gzip -f
TAR ?= tar
ZIP ?= zip
dist: $(release).tar.gz $(release).zip
$(RM) -r $(release)
manuals: php-mode.info.gz php-mode.pdf php-mode.ps.gz php-mode.html
$(release): $(lisp_files) $(texi_files) Makefile ChangeLog
mkdir $@ \
&& $(CP) $^ $@
$(release).tar: $(release)
$(TAR) cf $@ $<
$(release).zip: $(release)
$(ZIP) -9 -r $@ $<
%.gz: %
$(GZIP) $<
%.html: %.texi
makeinfo --html --output $@ --no-split --no-headers $<
makeinfo --html --output html-manual $<
for f in html-manual/*.html $@; do \
$(CP) $${f} $${f}~; \
perl -pe 'while (/emacs\.html#[^"-]*-/){s/(emacs\.html#[^"-]*)-/\1 /g;}' $${f}~ \
| sed -e 's!ccmode\.html!${CCMODE_MANUAL}!g' \
-e 's!\.\./ccmode/\([^#]*\)!${CCMODE_MANUAL}\1!g' \
-e 's!emacs\.html\#!${EMACS_MANUAL}!g' \
-e 's!\.\./emacs/\([^#]*\)!${EMACS_MANUAL}\1!g' > $${f}; \
done
%.info: %.texi
makeinfo $<
%.txt: %.texi
makeinfo --plaintext --output $@ --no-split --no-headers $<
%.pdf: %.texi
texi2pdf $<
%.dvi: %.texi
texi2dvi $<
%.ps: %.dvi
dvips -o $@ $<
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.