Codebase list m2300w / scrub-obsolete/main Makefile.in
scrub-obsolete/main

Tree @scrub-obsolete/main (Download .tar.gz)

Makefile.in @scrub-obsolete/mainraw · history · blame

#
# $Header: /cvsroot/m2300w/m2300w/Makefile.in,v 1.5 2004/08/04 14:11:22 gfuer Exp $
#
# Copyright (C) 2004  Gerhard Fuernkranz
#
# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
#

@SET_MAKE@
INSTALL		= @INSTALL@

INSTROOT	=
PREFIX		= @prefix@
NAME		= @PACKAGE_NAME@
VERSION		= @PACKAGE_VERSION@
RELEASE		= @RELEASE@
DOCDIR		= $(INSTROOT)$(PREFIX)/share/doc/$(NAME)-$(VERSION)

SUBDIRS		= src psfiles foomatic ppd
DOCFILES	= README README.ghostscript INSTALL COPYING

all:
	for DIR in $(SUBDIRS); do (cd $$DIR; $(MAKE) $@); done

install:
	rm -rf $(INSTROOT)$(PREFIX)/share/$(NAME)/crd
	for DIR in $(SUBDIRS); do (cd $$DIR; $(MAKE) INSTROOT=$(INSTROOT) $@); done
	$(INSTALL) -c -d -m 755 $(DOCDIR)
	$(INSTALL) -c -m 644 $(DOCFILES) $(DOCDIR)

ppd: always
	$(MAKE) install
	(cd foomatic; $(MAKE) $@)
	$(MAKE) install

clean:
	rm -rf INSTROOT
	rm -f $(NAME)-$(VERSION).tar.gz
	rm -f $(NAME)-$(VERSION)-$(RELEASE).spec
	for DIR in $(SUBDIRS); do (cd $$DIR; $(MAKE) $@); done

distclean: clean
	for DIR in $(SUBDIRS); do (cd $$DIR; $(MAKE) $@); done
	rm -rf config.log autom4te.cache config.status Makefile m2300w.spec

rpm: all m2300w.spec
	rm -rf INSTROOT
	mkdir -m 755 INSTROOT
	$(MAKE) install INSTROOT=`pwd`/INSTROOT
	M2300W_MAKE=y rpm -bb --buildroot=`pwd`/INSTROOT m2300w.spec
	# rm -rf INSTROOT

srpm: m2300w.spec
	rm -f $(NAME)-$(VERSION)-$(RELEASE).spec
	ln -s m2300w.spec $(NAME)-$(VERSION)-$(RELEASE).spec
	rpm -bs $(NAME)-$(VERSION)-$(RELEASE).spec

tarball: distclean
	rm -rf /tmp/$(NAME)-$(VERSION)
	mkdir /tmp/$(NAME)-$(VERSION)
	find . | cpio -pdum /tmp/$(NAME)-$(VERSION)
	find /tmp/$(NAME)-$(VERSION) -name CVS | xargs rm -rf
	HERE=`pwd`; cd /tmp ; \
	tar zcvf $$HERE/$(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)

always: