File: Makefile.in

package info (click to toggle)
rep-xmms 0.4-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 324 kB
  • ctags: 9
  • sloc: sh: 2,772; ansic: 329; makefile: 198; lisp: 150
file content (85 lines) | stat: -rw-r--r-- 2,471 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
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
# Copyright (C) 2001 Ian Campbell <ijc@hellion.org.uk>
# $Id: Makefile.in,v 1.2 2001/04/06 10:23:34 ijc Exp $
#
# This file is part of the rep-xmms package.
#
# Parts of this filewere taken from the sawfish Makefile.in 
# and are Copyright (C) John Harper 1999.
#
# 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.

include ../Makedefs

top_builddir=..
top_srcdir=@top_srcdir@
VPATH=@srcdir@:@top_srcdir@

sawfish_prog = $(rep_LIBTOOL) --mode=execute sawfish --batch --no-rc
COMPILE_ENV = SAWFISHEXECDIR=$(top_builddir)/src/.libexec \
	      SAWFISHDOCFILE=../DOC

SAWFISH_LISP_FILES := xmms/command.jl
SAWFISH_LISP_DIRS := xmms/

INSTALL_FILES := *.jl *.jlc
DIST_FILES := *.jl

INSTALL_DIRS := xmms/

all : lisp

lisp : $(SAWFISH_LISP_FILES)
	for d in $(SAWFISH_LISP_DIRS); do \
	  $(COMPILE_ENV) $(sawfish_prog) compiler -f compile-lib-batch $$d; \
	done

install : all installdirs
	for d in $(INSTALL_DIRS); do \
	  for f in $(foreach x,$(INSTALL_FILES),$$d/$(x)); do \
	    $(INSTALL_DATA) $$f $(DESTDIR)$(lispdir)/$$d; \
	  done \
	done
	$(rep_INSTALL_ALIASES) -l . $(DESTDIR)$(lispdir)

installdirs : mkinstalldirs
	$(SHELL) $< $(foreach x,$(INSTALL_DIRS),$(DESTDIR)$(lispdir)/$(x))

uninstall :
	for d in $(INSTALL_DIRS); do \
	  for f in $(foreach x,$(INSTALL_FILES),$$d/$(x)); do \
	    rm -f $(DESTDIR)$(lispdir)/$$f; \
	  done ; \
	  rmdir $(DESTDIR)$(lispdir)/$$d; \
	done

clean :
	rm -f `find . \( -name '*.jlc' -o -name '*~' -o -name core \) -print`

realclean : clean
	rm -f Makefile

distdir:
	for d in $(INSTALL_DIRS); do \
	  mkdir $(distdir)/$$d ; \
	  for f in $(foreach x,$(DIST_FILES),$$d/$(x)); do \
	    cp $$f $(distdir)/$(d)/$$f || exit 1 ; \
	  done \
	done
	for file in Makefile.in ; do \
		cp $$file $(distdir) || exit 1 ; \
	done

.PHONY : all lisp install uninstall clean realclean distdir