File: Makefile.in

package info (click to toggle)
m2300w 0.51-14
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,120 kB
  • sloc: perl: 4,026; ansic: 2,260; xml: 788; sh: 488; makefile: 195; python: 8
file content (79 lines) | stat: -rw-r--r-- 2,375 bytes parent folder | download | duplicates (5)
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
#
# $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: