# Makefile.in for sawmill's themes # $Id: Makefile.in,v 1.20 2001/01/20 02:40:29 jsh Exp $ # # Copyright (C) 1999 John Harper # # This file is part of sawmill. # # sawmill 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, or (at your option) # any later version. # # sawmill 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 sawmill; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. include ../Makedefs top_builddir=.. top_srcdir=@top_srcdir@ srcdir=@srcdir@ VPATH=@srcdir@:@top_srcdir@ sitethemedir := ${sawfishdir}/themes themedir := ${sawfishdir}/${version}/themes # also in lisp/Makefile.in sawfish_prog = $(rep_LIBTOOL) --mode=execute -dlopen ../src/gradient.la \ ../src/sawfish --batch --no-rc COMPILE_ENV = SAWFISHLISPDIR=../lisp \ SAWFISHEXECDIR=$(top_builddir)/src/.libs \ SAWFISHDOCFILE=../DOC THEMES := absolute-e Crux brushed-metal gradient gtk microGUI mono simple smaker all : # only uncompiled themes are loaded for now, so no point doing this # for d in $(THEMES); do \ # $(COMPILE_ENV) $(sawfish_prog) compiler -f compile-lib-batch $$d; \ # done install : all installdirs for d in $(THEMES); do \ rm -rf $(DESTDIR)$(themedir)/$$d; \ mkdir $(DESTDIR)$(themedir)/$$d; \ for f in $(srcdir)/$$d/*; do \ if [ $$f != $(srcdir)/$$d/CVS ]; then \ $(INSTALL_DATA) $$f $(DESTDIR)$(themedir)/$$d; \ fi \ done \ done installdirs : mkinstalldirs $(SHELL) $< $(DESTDIR)$(themedir) $(DESTDIR)$(sitethemedir) uninstall : for d in $(THEMES); do \ rm -rf $(DESTDIR)$(themedir)/$$d; \ done clean : for d in $(THEMES); do \ rm -f $(srcdir)$$d/*.jlc $(srcdir)/$$d/*~; \ done rm -f *.jlc *.jld *~ realclean : clean rm -f Makefile .PHONY : all lisp install uninstall clean realclean