########################################################################### # LPRng - An Extended Print Spooler System # # Copyright 1988-2001 Patrick Powell, San Diego, CA # address@hidden # See LICENSE for conditions of use. # ########################################################################### # MODULE: Makefile.in # PURPOSE: top level Makefile for LPD Software # $Id: Makefile,v 1.3 2007/04/26 02:46:07 leisner Exp leisner $ ########################################################################## #**************###########************** # You must use ANSI C and GNU Make! #*************************************** PACKAGE=LPRng VERSION=3.8.28 SRC=. INSTALL=/usr/gnu/coreutils/bin/install -c # prefix prefix=/usr/local # exec prefix exec_prefix=${prefix} # for binaries bindir=${exec_prefix}/bin # for admin type of binaries sbindir=${exec_prefix}/sbin # for the filters libexecdir=${exec_prefix}/libexec # for the configuration stuff sysconfdir=${prefix}/etc # for the man pages mandir=${prefix}/man # top build directory top_builddir=. LPD_PERMS_PATH=\"${sysconfdir}/lpd/lpd.perms\" LPD_CONF_PATH=\"${sysconfdir}/lpd/lpd.conf\" PRINTCAP_PATH=\"${sysconfdir}/printcap\" LPD_PATH=\"${sbindir}/lpd\" SHELL=/bin/sh LOCKFILE=\"/var/run/lpd\" CONFIG_SUBDIR="lpd" PSHOWALL="-ax" FILTER_DIR=${libexecdir}/filters LOCALEDIR=${prefix}/share/locale INIT= USE_NLS=no LIBTOOL=$(SHELL) $(top_builddir)/libtool #============================================================================= # List the directories you want to generate: # DIRS for all, clean, etc. # ALLDIRS for other such as documentation #============================================================================= DIRS= UTILS ALLDIRS= ${DIRS} ############################################################################### all: ${DIRS} # define default target .PHONY: all warn TAGS clean uninstall install info dvi check \ tar send realclean mostlyclean distclean dist update ci cifiles $(ALLDIRS) MAKETARGET=all ############################################################################### $(ALLDIRS): if [ "$@" = po ] ; then \ for i in po/Makefile* ; do \ if [ -f "$$i" ] ; then \ if grep '^mkinstalldirs.*=.*case' $$i ; then \ echo "fixing broken $$i which causes wrong path to mkinstalldirs to be used"; \ perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$$(SHELL) \$$(MKINSTALLDIRS):' $$i; \ fi \ fi \ done \ fi # if [ "$@" != po -o "$(USE_NLS)" != "no" ] ; then \ # cd $@; $(MAKE) localedir=${LOCALEDIR} \ # DESTDIR=$(DESTDIR) $(MAKETARGET) ; \ # fi