Codebase list foomatic-db / debian/20050403-1 Makefile.in
debian/20050403-1

Tree @debian/20050403-1 (Download .tar.gz)

Makefile.in @debian/20050403-1raw · history · blame

# Makefile to install foomatic-db
# $Revision: 3.0 $

# PREFIX defaults to /usr/local for manually installed progs, so that they
# are not messed up on a system upgrade.
#
# `architecture independent', static data files i.e. perl libs go into
#   $(PREFIX)/share/foomatic
# (user) executables into $(PREFIX)/bin/
# system binaries go into $(PREFIX)/sbin
# configuration files into /etc/foomatic/*.
#
# The PERLPREFIX allows a seperate prefix for the Perl libraries. Use this
# when Perl libraries in /usr/local are not found.

# Variables

DEBUG=

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
bindir=@bindir@
sbindir=@sbindir@
mandir=@mandir@
datadir=@datadir@
sysconfdir=@sysconfdir@

PREFIX=$(prefix)

# The location where to install the database
LIBDIR=$(datadir)/foomatic

# This is mainly useful for building a binary foomatic package
DESTDIR=/

### Probably nothing to fiddle past here

# Files generated by the AC_OUTPUT call of "./configure"
AC_OUTPUT_FILES:=Makefile

# Masks for trash files which have to be removed before packaging Foomatic
TRASHFILES:="*~" "*\#*" ".??*" "*.rej"

all: build

# The install rule should check for kitloads and avoid stomping.  It doesn't
install: install-db

install-db:
	install -d $(DESTDIR)$(LIBDIR)
	tar cf - --exclude=CVS db | ( cd $(DESTDIR)$(LIBDIR) && tar xf -)

build:
	@echo "Nothing to compile/build, use \"make install\" to install the database."

clean: remove-trash

distclean: clean
	rm -f $(AC_OUTPUT_FILES) config.log config.status config.cache
	rm -rf autom*.cache confdefs.h

maintainer-clean: distclean
	rm -f configure aclocal.m4

# Uninstall an installed Foomatic
uninstall: uninstall-db

uninstall-db:
	rm -rf $(DESTDIR)$(LIBDIR)

# Various testing/debugging/etc targets
inplace: testing
testing: INPLACE = --inplace
testing:
	@echo "For using this database without system-wide installation, uncompress this"
	@echo "package inside the main directory of \"foomatic-db-engine\" or in the"
	@echo "directory where you have uncompressed \"foomatic-db-engine\"."
	@echo "Build \"foomatic-db-engine\" with \"make inplace\" and do the database"
	@echo "operations from within the main directory of \"foomatic-db-engine\"."

inplace-clean: testing_clean
testing-clean: clean

# Remove editor backup and temporary files
remove-trash:
	for m in $(TRASHFILES); do \
	  find . -name "$$m" -exec rm "{}" \; ; \
	done

# We need to export all Variables for makeDefaults and the scripts target to
# work.
.EXPORT_ALL_VARIABLES:

.PHONY: all build install install-db \
	inplace testing clean inplace-clean testing-clean distclean \
	maintainer-clean