1## Process this file with automake to produce Makefile.in 2## $Id: Makefile.am,v 1.120.2.3 2003/07/12 20:47:44 rleigh Exp $ 3## Copyright (C) 2000 Roger Leigh 4## 5## This program is free software; you can redistribute it and/or modify 6## it under the terms of the GNU General Public License as published by 7## the Free Software Foundation; either version 2, or (at your option) 8## any later version. 9## 10## This program is distributed in the hope that it will be useful, 11## but WITHOUT ANY WARRANTY; without even the implied warranty of 12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13## GNU General Public License for more details. 14## 15## You should have received a copy of the GNU General Public License 16## along with this program; if not, write to the Free Software 17## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 19## Process this file with automake to produce Makefile.in. 20 21AUTOMAKE_OPTIONS = 1.4 gnu 22 23@SET_MAKE@ 24 25MAINT_CHARSET = latin1 26 27 28## Variables 29 30SUBDIRS = intl include lib man src samples test po doc 31DISTDIRS = scripts debian 32 33EXTRA_DIST = configure.in.in autogen.sh 34 35if MAINTAINER_MODE 36MAINT_MODE = true 37endif 38 39 40## Rules 41 42## Libtool dependency 43libtool: $(LIBTOOL_DEPS) 44 $(SHELL) ./config.status --recheck 45 46ChangeLog: 47 @cd $(top_srcdir) ; \ 48 echo `pwd` 49 if test -f .noupdate ; then \ 50 echo "ChangeLog: .noupdate found: NOT updating ChangeLog from CVS" ; \ 51 elif test -d CVS ; then \ 52 echo "ChangeLog: Updating ChangeLog from CVS" ; \ 53 cvs log -N | $(PERL) scripts/mkchlog > ChangeLog.tmp ; \ 54 if test -s ChangeLog.tmp ; then \ 55 mv ChangeLog.tmp ChangeLog ; \ 56 else \ 57 echo "ChangeLog: Failed to update ChangeLog ['touch .noupdate' to skip]" ; \ 58 $(RM) ChangeLog.tmp ; \ 59 exit 1 ; \ 60 fi \ 61 elif test -s ChangeLog ; then \ 62 echo "ChangeLog: This is not a CVS version of GIMP-Print" ; \ 63 echo "ChangeLog: Not updating ChangeLog from CVS!" ; \ 64 else \ 65 echo "ChangeLog: No ChangeLog or ChangeLog of zero size found!" ; \ 66 echo "ChangeLog: Failed to update ChangeLog ['touch .noupdate' to skip]" ; \ 67 exit 1 ; \ 68 fi 69 70 71# Rebuild configure.in from configure.in.in if configure.in.in is available. 72# If not, don't do anything. 73configure.in: configure.in.in 74 if test -f configure.in.in ; then \ 75 sed "s/XXXRELEASE_DATE=XXX/RELEASE_DATE=\"`date '+%d %b %Y'`\"/" configure.in.in > configure.in ; \ 76 fi 77 78configure.in.in: 79 true 80 81dist-hook: 82 for dir in $(DISTDIRS) ; do \ 83 if test -d $(srcdir)/$$dir ; then \ 84 mkdir $(distdir)/$$dir; \ 85 for dirfile in $(srcdir)/$$dir/*; do \ 86 if test -f $$dirfile ; then \ 87 cp -p $$dirfile $(distdir)/$$dir; \ 88 fi \ 89 done \ 90 fi \ 91 done 92# Create debian/control 93 DEBIAN_VERSION=`grep "(" debian/changelog | head -1l | sed "s/^[^(]*(//" | sed "s/).*$$//"` ; \ 94 UPSTREAM_VERSION=`echo $$DEBIAN_VERSION | sed "s/-[^-]*$$//"` ; \ 95 LIBRARY_VERSION=$$(($(LT_CURRENT) - $(LT_AGE))) ; \ 96 sed -e "s/#UPSTREAM_VERSION#/$${UPSTREAM_VERSION}/g" -e "s/#LIBRARY_VERSION#/$${LIBRARY_VERSION}/g" <debian/control.in >$(distdir)/debian/control 97# Do some extra magic to make a distribution for GIMP CVS 98 status=0 ; \ 99 exit $$status 100 101install-cups: all 102 cd src/cups ; \ 103 $(MAKE) install 104 105install-ghost: all 106 cd src/ghost ; \ 107 $(MAKE) install 108 109install-gimp: all 110 cd src/gimp ; \ 111 $(MAKE) install 112 113docs: 114 cd doc ; \ 115 $(MAKE) docs 116 117html: 118 cd doc ; \ 119 $(MAKE) html 120 121ps: 122 cd doc ; \ 123 $(MAKE) ps 124 125pdf: 126 cd doc ; \ 127 $(MAKE) pdf 128 129snapshot: 130 $(MAKE) dist distdir=$(PACKAGE)`date +"%Y%m%d"` 131 132DEBUILD_OPTIONS = -us -uc 133deb: debian/changelog debian/control debian/rules 134 $(MAKE) dist 135 -$(RM) -r debian-build 136 -mkdir debian-build 137 cd debian-build ; \ 138 mv ../$(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)_$(VERSION).orig.tar.gz ; \ 139 tar xfvz $(PACKAGE)_$(VERSION).orig.tar.gz ; \ 140 cd $(PACKAGE)-$(VERSION) ; \ 141 debuild $(DEBUILD_OPTIONS) ; \ 142 cd .. ; \ 143 $(RM) -r $(PACKAGE)-$(VERSION) 144 145debian/control: 146 debian/rules debian/control 147 148 149## Clean 150 151CLEANSCRIPTS = \ 152 config.guess \ 153 config.sub \ 154 install-sh \ 155 ltconfig \ 156 ltmain.sh \ 157 missing \ 158 mkinstalldirs 159 160CLEANFILES = .gimp-dist .noupdate 161MAINTAINERCLEANFILES = ABOUT-NLS INSTALL aclocal.m4 config.h.in configure Makefile.in stamp-h.in $(addprefix scripts/, $(CLEANSCRIPTS)) 162 163.PHONY: deb gimp-dist install-cups install-ghost snapshot ChangeLog install-gimp html 164