1# Makefile.in for nokogiri subdirectory 2 3# $Id: Makefile.in,v 1.13 2002/04/21 03:38:25 jsh Exp $ 4 5# Copyright (C) 2000 John Harper <john@dcs.warwick.ac.uk> 6 7# This file is part of sawfish. 8 9# sawfish is free software; you can redistribute it and/or modify it 10# under the terms of the GNU General Public License as published by 11# the Free Software Foundation; either version 2, or (at your option) 12# any later version. 13 14# sawfish is distributed in the hope that it will be useful, but 15# WITHOUT ANY WARRANTY; without even the implied warranty of 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17# GNU General Public License for more details. 18 19# You should have received a copy of the GNU General Public License 20# along with sawfish; see the file COPYING. If not, write to 21# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22 23makepp_percent_subdirs=1 24include ../../../Makedefs 25 26top_builddir=../../.. 27top_srcdir=@top_srcdir@ 28srcdir=@srcdir@ 29 30REP_ENVIRON:=$(REP_ENVIRON) REP_LOAD_PATH=$(top_srcdir)/lisp:$(top_builddir)/lisp 31 32SRCS := apply.jl \ 33 config.jl \ 34 group.jl \ 35 i18n.jl \ 36 layout.jl \ 37 main.jl \ 38 shell.jl \ 39 slot.jl \ 40 wm.jl 41 42L_SRCS := layouts/keymaps.jl 43 44OBJS := $(SRCS:.jl=.jlc) 45L_OBJS := $(L_SRCS:.jl=.jlc) 46 47ALL_SRCS := $(SRCS) $(L_SRCS) 48ALL_OBJS := $(OBJS) $(L_OBJS) 49 50SUBSTS := -e "s|__nokogiridir__|$(lispdir)|" 51 52%.jlc : %.jl 53 $(REP_ENVIRON) rep compiler -f compile-batch $< 54 55all : $(ALL_SRCS) $(ALL_OBJS) 56 57%.jl : %.jl.in ./Makefile 58 sed $(SUBSTS) $< >$@ 59 60install : all installdirs 61 set -e; for p in $(SRCS) $(OBJS); do \ 62 $(INSTALL_DATA) $$p $(DESTDIR)${lispdir}/sawfish/cfg; \ 63 done 64 set -e; for p in $(L_SRCS) $(L_OBJS); do \ 65 $(INSTALL_DATA) $$p $(DESTDIR)${lispdir}/sawfish/cfg/layouts; \ 66 done 67 $(INSTALL_SCRIPT) main.jlc $(DESTDIR)${bindir}/sawfish-config 68 $(INSTALL_DATA) sawfish-config.png $(DESTDIR)${datadir}/icons/hicolor/32x32/apps/ 69 70uninstall : 71 rm -rf $(DESTDIR)${lispdir}/sawfish/cfg 72 rm -f $(DESTDIR)${datadir}/icons/hicolor/32x32/apps/sawfish-config.png 73 rm -f $(DESTDIR)${bindir}/sawfish-config 74 75installdirs : $(top_srcdir)/mkinstalldirs 76 $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(lispdir)/sawfish/cfg \ 77 $(DESTDIR)$(lispdir)/sawfish/cfg/layouts $(DESTDIR)$(bindir) \ 78 $(DESTDIR)${datadir}/icons/hicolor/32x32/apps/ 79 80clean : 81 rm -f *.jlc *~ core \ 82 layouts/*~ layouts/*.jlc \ 83 main.jl 84 85distclean : clean 86 rm -f Makefile 87 88.PHONY: all install uninstall clean distclean 89