AUTOMAKE_OPTIONS = 1.4 gnu
@SET_MAKE@
MAINT_CHARSET = latin1
NONGIMP_SUBDIRS =
NONGIMP_DISTDIRS =
NONGIMP_SUBDIRS = test
NONGIMP_DISTDIRS = debian
SUBDIRS = include intl lib man src samples $(NONGIMP_SUBDIRS) po doc
DISTDIRS = scripts $(NONGIMP_DISTDIRS)
EXTRA_DIST = configure.in.in autogen.sh
if MAINTAINER_MODE
MAINT_MODE = true
endif
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
ChangeLog:
@cd $(top_srcdir) ; \
echo `pwd`
if test -f .noupdate ; then \
echo "ChangeLog: .noupdate found: NOT updating ChangeLog from CVS" ; \
elif test -d CVS ; then \
echo "ChangeLog: Updating ChangeLog from CVS" ; \
cvs log -N | $(PERL) scripts/mkchlog > ChangeLog.tmp ; \
if test -s ChangeLog.tmp ; then \
mv ChangeLog.tmp ChangeLog ; \
else \
echo "ChangeLog: Failed to update ChangeLog ['touch .noupdate' to skip]" ; \
$(RM) ChangeLog.tmp ; \
exit 1 ; \
fi \
elif test -s ChangeLog ; then \
echo "ChangeLog: This is not a CVS version of GIMP-Print" ; \
echo "ChangeLog: Not updating ChangeLog from CVS!" ; \
else \
echo "ChangeLog: No ChangeLog or ChangeLog of zero size found!" ; \
echo "ChangeLog: Failed to update ChangeLog ['touch .noupdate' to skip]" ; \
exit 1 ; \
fi
configure.in: configure.in.in
if test -f configure.in.in ; then \
sed "s/XXXRELEASE_DATE=XXX/RELEASE_DATE=\"`date '+%d %b %Y'`\"/" configure.in.in > configure.in ; \
fi
configure.in.in:
true
dist-hook:
for dir in $(DISTDIRS) ; do \
if test -d $(srcdir)/$$dir ; then \
mkdir $(distdir)/$$dir; \
for dirfile in $(srcdir)/$$dir/*; do \
if test -f $$dirfile ; then \
cp -p $$dirfile $(distdir)/$$dir; \
fi \
done \
fi \
done
DEBIAN_VERSION=`grep "(" debian/changelog | head -1l | sed "s/^[^(]*(//" | sed "s/).*$$//"` ; \
UPSTREAM_VERSION=`echo $$DEBIAN_VERSION | sed "s/-[^-]*$$//"` ; \
LIBRARY_VERSION=$$(($(LT_CURRENT) - $(LT_AGE))) ; \
sed -e "s/#UPSTREAM_VERSION#/$${UPSTREAM_VERSION}/g" -e "s/#LIBRARY_VERSION#/$${LIBRARY_VERSION}/g" <debian/control.in >$(distdir)/debian/control
status=0 ; \
if test -f .gimp-dist ; then \
$(RM) -r $(distdir)/src/cups $(distdir)/src/foomatic $(distdir)/src/ghost ; \
$(RM) -r $(distdir)/debian $(distdir)/scripts/* $(distdir)/test ; \
$(RM) -r $(distdir)/intl $(distdir)/po/Makefile.in.in $(distdir)/po/*.gmo ; \
$(RM) -r $(distdir)/ABOUT-NLS $(distdir)/INSTALL $(distdir)/aclocal.m4 $(distdir)/config.h.in $(distdir)/configure $(distdir)/cups-gimpprint.list.in $(distdir)/stamp-h.in ; \
find $(distdir) -name Makefile.in -print | xargs --no-run-if-empty $(RM) ; \
cd $(distdir) ; \
$(PERL) ../scripts/patch-gimp configure.in ; \
$(PERL) ../scripts/patch-gimp Makefile.am ; \
$(PERL) ../scripts/patch-gimp src/Makefile.am ; \
$(PERL) ../scripts/patch-gimp po/POTFILES.in ; \
status=$$? ; \
cd .. ; \
$(RM) .gimp-dist ; \
fi ; \
exit $$status
gimp-dist:
touch .gimp-dist
$(MAKE) dist distdir=$(PACKAGE)-$(VERSION)-GIMP-DIST
install-cups: all
cd src/cups ; \
$(MAKE) install
install-ghost: all
cd src/ghost ; \
$(MAKE) install
install-gimp: all
cd src/gimp ; \
$(MAKE) install
docs:
cd doc ; \
$(MAKE) docs
html:
cd doc ; \
$(MAKE) html
ps:
cd doc ; \
$(MAKE) ps
pdf:
cd doc ; \
$(MAKE) pdf
snapshot:
$(MAKE) dist distdir=$(PACKAGE)`date +"%Y%m%d"`
DEBUILD_OPTIONS = -us -uc
deb: debian/changelog debian/control debian/rules
$(MAKE) dist
-$(RM) -r debian-build
-mkdir debian-build
cd debian-build ; \
mv ../$(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)_$(VERSION).orig.tar.gz ; \
tar xfvz $(PACKAGE)_$(VERSION).orig.tar.gz ; \
cd $(PACKAGE)-$(VERSION) ; \
debuild $(DEBUILD_OPTIONS) ; \
cd .. ; \
$(RM) -r $(PACKAGE)-$(VERSION)
debian/control:
debian/rules debian/control
CLEANSCRIPTS = \
config.guess \
config.sub \
install-sh \
ltconfig \
ltmain.sh \
missing \
mkinstalldirs
CLEANFILES = .gimp-dist .noupdate
MAINTAINERCLEANFILES = ABOUT-NLS INSTALL aclocal.m4 config.h.in configure Makefile.in stamp-h.in $(addprefix scripts/, $(CLEANSCRIPTS))
.PHONY: deb gimp-dist install-cups install-ghost snapshot ChangeLog
.PHONY: install-gimp html