File: Makefile.inc.in

package info (click to toggle)
solfege 2.0.4-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,200 kB
  • ctags: 1,844
  • sloc: python: 12,160; xml: 5,458; ansic: 1,486; makefile: 562; sh: 233
file content (110 lines) | stat: -rw-r--r-- 3,626 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
107
108
109
110
# vim: set noexpandtab:
#
# GNU Solfege - eartraining for GNOME
# Copyright (C) 2000, 2001, 2002, 2003  Tom Cato Amundsen
#
# This program 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

all:

%.html: $(depth)/topdocs/%.texi
	makeinfo --no-headers --html --no-split $< > $@


LOOP=$(foreach i, $(SUBDIRS), $(MAKE) -C $(i) $@ &&) true
LANGLOOP=$(foreach i, $(LANGUAGES), $(MAKE) -C $(i) $@ &&) true

export prefix=@prefix@
export exec_prefix=@exec_prefix@
export bindir=@bindir@
export datadir=@datadir@
export sysconfdir=@sysconfdir@
export libdir=@libdir@
export mandir=@mandir@
export CC=@CC@
export CFLAGS=@CFLAGS@
export M4=@M4@
export SWIG=@SWIG@
export SWIG_VERSION=@SWIG_VERSION@
export WITH_LOCAL_XMLCATALOG=@WITH_LOCAL_XMLCATALOG@
export XGETTEXT=@XGETTEXT@
export MSGFMT=@MSGFMT@
export MSGMERGE=@MSGMERGE@
export PYTHON=@PYTHON@
export XSLTPROC=@XSLTPROC@
export PYTHON_VERSION=@PYTHON_VERSION@
export PYTHON_PREFIX=@PYTHON_PREFIX@
export PYTHON_INCLUDES=@PYTHON_INCLUDES@
export PACKAGE=@PACKAGE@

export MAJOR_VERSION=@MAJOR_VERSION@
export MINOR_VERSION=@MINOR_VERSION@
export PATCH_LEVEL=@PATCH_LEVEL@
export VERSION=@VERSION@
export stylesheet_filename=@stylesheet_filename@

export INSTALL=@INSTALL@
export INSTALL_PROGRAM = ${INSTALL}
export INSTALL_DATA = ${INSTALL} -m 644
export WITH_GNOME = @WITH_GNOME@
export ENABLE_OSS_SOUND = @ENABLE_OSS_SOUND@
export ENABLE_TUNER = @ENABLE_TUNER@
export HAVE_LINUX_AWE_VOICE_H = @HAVE_LINUX_AWE_VOICE_H@
export HAVE_GTKHTML = @HAVE_GTKHTML@
export HAVE_FFTW = @HAVE_FFTW@
export LIBS=@LIBS@
export DISTNAME=$(PACKAGE)-$(VERSION)
export DISTDIR=$(PWD)/$(PACKAGE)-$(VERSION)

dist:
	mkdir $(depth)/$(DISTNAME)/$(name)
	cp $(dist_files) $(depth)/$(DISTNAME)/$(name)
	$(LOOP)

easy-dist:
	mkdir -p $(depth)/$(DISTNAME)/$(name)
	cp $(easy_dist_files) $(depth)/$(DISTNAME)/$(name)
	$(LOOP)

win32-dist-local:
	cp $(win32_dist_files) $(depth)/$(DISTNAME)/$(name)

python-install:
	mkdir -p $(datadir)/$(PACKAGE)/$(VERSION)/$(name)
	$(INSTALL_DATA) $(python-installfiles) $(datadir)/$(PACKAGE)/$(VERSION)/$(name)
ifneq ($(nopycompile),YES)
	$(depth)/py-compile --basedir $(datadir)/$(PACKAGE)/$(VERSION)/$(name)/*.py 1>/dev/null
endif

python-uninstall:
	echo "__init__.py" | sed -e 's/\.py/\.pyc/g'
	for file in $(python-installfiles); do\
	  rm -f $(datadir)/$(PACKAGE)/$(VERSION)/$(name)/$$file; \
	  rm -f $(datadir)/$(PACKAGE)/$(VERSION)/$(name)/`echo $$file | sed -e 's/\.py/\.pyc/g'  `;  \
	  rm -f $(datadir)/$(PACKAGE)/$(VERSION)/$(name)/`echo $$file | sed -e 's/\.py/\.pyo/g'  `;  \
	done
	rmdir $(datadir)/$(PACKAGE)/$(VERSION)/$(name) || true

data-install:
	mkdir -p $(datadir)/$(PACKAGE)/$(VERSION)/$(name)
	$(INSTALL_DATA) $(data-installfiles) $(datadir)/$(PACKAGE)/$(VERSION)/$(name)

data-uninstall:
	for file in $(data-installfiles); do\
	  rm -f $(datadir)/$(PACKAGE)/$(VERSION)/$(name)/$$file || true ;\
	done
	rmdir $(datadir)/$(PACKAGE)/$(VERSION)/$(name) || true
	rmdir $(datadir)/$(PACKAGE)/$(VERSION) || true