File: Makefile.am

package info (click to toggle)
suikyo 2.1.0-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 904 kB
  • ctags: 115
  • sloc: ruby: 1,160; sh: 548; lisp: 165; makefile: 112
file content (43 lines) | stat: -rw-r--r-- 1,509 bytes parent folder | download | duplicates (3)
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
# Makefile.am: Template of Automake for suikyo
# $Id: Makefile.am,v 1.7 2005/01/11 14:51:49 komatsu Exp $
#
# Copyright (C) 2003 Hiroyuki Komatsu <komatsu@taiyaki.org>
#     All rights reserved.
#     This is free software with ABSOLUTELY NO WARRANTY.
#
# You can redistribute it and/or modify it under the terms of 
# the GNU General Public License version 2.

SUBDIRS = contrib conv-table doc elisp ruby
EXTRA_DIST = autogen.sh suikyo.spec suikyo.spec.in suikyo.pc.in

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = suikyo.pc

rpm:
	$(MAKE) dist
	rpmbuild -ta --clean $(PACKAGE)-$(VERSION).tar.gz

cygwin: cygwin-dist

cygwin-dist:
	rm -rf cygwin/dist
	./configure --prefix `pwd`/cygwin/dist/usr/local \
                    --with-rubydir=`pwd`/cygwin/dist/usr/lib/ruby/site_ruby/1.8
	make install
	cd cygwin/dist ; tar cjf ../$(PACKAGE)-$(VERSION).tar.bz2 usr ; rm -rf usr
	cd cygwin ; ruby -e " \
	packages = ['']; \
	packages.each { | suffix | \
	  package_name = '$(PACKAGE)' + suffix; \
	  archive_name = package_name + '-$(VERSION).tar.bz2'; \
	  md5_string  = \`md5sum #{archive_name}\`.split().first(); \
	  size_string = \`ls -l #{archive_name}\`.split()[4]; \
	  File::open(package_name + '.ini', 'w') {|io| \
	    File::open(package_name + '.ini.src', 'r').each {|line| \
	      line.sub!('%PACKAGE_VERSION%', '$(PACKAGE_VERSION)'); \
	      line.sub!('%PACKAGE_MD5%',     md5_string); \
	      line.sub!('%PACKAGE_SIZE%',    size_string); \
	      io.print(line); \
	    }}} "
	./configure