verzia 1.14, 2002/06/25 16:48:58 |
verzia 1.15, 2002/07/01 10:45:00 |
|
|
# |
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
# Author: rajo <host8@kepler.fmph.uniba.sk> |
# This Makefile.in is free software; the Free Software Foundation |
# |
# gives unlimited permission to copy and/or distribute it, |
# Copyright (c) rajo |
# with or without modifications, as long as this notice is preserved. |
# |
|
|
# This program is distributed in the hope that it will be useful, |
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
|
# PARTICULAR PURPOSE. |
|
|
# $Id$ |
# Main Makefile for 'ep'. |
|
# $Id$ |
|
|
PACKAGE = @PACKAGE@ |
PACKAGE = @PACKAGE@ |
VERSION = @VERSION@ |
VERSION = @VERSION@ |
|
|
|
CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
|
|
|
SHELL = @SHELL@ |
|
|
# Directories {{{ |
# Directories {{{ |
srcdir = @srcdir@ |
top_builddir = . |
top_srcdir = @top_srcdir@ |
srcdir = @srcdir@ |
VPATH = @srcdir@ |
top_srcdir = @top_srcdir@ |
prefix = @prefix@ |
VPATH = @srcdir@ |
exec_prefix = @exec_prefix@ |
prefix = @prefix@ |
|
exec_prefix = @exec_prefix@ |
bindir = @bindir@ |
|
sbindir = @sbindir@ |
bindir = @bindir@ |
libexecdir = @libexecdir@ |
sbindir = @sbindir@ |
sysconfdir = @sysconfdir@ |
libexecdir = @libexecdir@ |
|
datadir = @datadir@ |
|
sysconfdir = @sysconfdir@ |
sharedstatedir = @sharedstatedir@ |
sharedstatedir = @sharedstatedir@ |
localstatedir = @localstatedir@ |
localstatedir = @localstatedir@ |
libdir = @libdir@ |
libdir = @libdir@ |
infodir = @infodir@ |
infodir = @infodir@ |
mandir = @mandir@ |
mandir = @mandir@ |
man1dir = $(mandir)/man1 |
man3dir = $(mandir)/man3 |
|
|
|
DESTDIR = |
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@ |
|
pkglibdir = $(libdir)/@PACKAGE@ |
|
pkgincludedir = $(includedir)/@PACKAGE@ |
|
|
DESTDIR = |
distdir = $(PACKAGE)-$(VERSION) |
|
top_distdir = $(distdir) |
|
|
top_builddir = . |
# }}} Directories |
datadir = $(prefix)/@DATADIRNAME@ |
|
|
|
distdir = $(PACKAGE)-$(VERSION) |
# Targets {{{ |
top_distdir = $(distdir) |
CONFIG_HEADER = $(top_builddir)/config.h |
|
include_HEADERS = |
|
noinst_HEADERS = |
|
|
|
noinst_SCRIPTS = |
|
|
|
man_MANS = |
|
man3_MANS = |
|
MANS = $(man_MANS) $(man3_MANS) |
|
|
|
#CONFIG_CLEAN_FILES = Doxyfile doc/sgml/defs.sgml |
|
CONFIG_CLEAN_FILES = |
|
SCRIPTS = $(noinst_SCRIPTS) |
|
|
SUBDIRS = src |
HEADERS = $(include_HEADERS) $(noinst_HEADERS) $(CONFIG_HEADER) |
|
|
# }}} Directories |
DISTFILES = AUTHORS COPYING INSTALL README TODO \ |
|
configure configure.in Makefile.in config.h.in \ |
|
install-sh mkinstalldirs rebuild \ |
|
src \ |
|
src/Makefile.in \ |
|
src/conf.c src/conf.h \ |
|
src/fd.c src/fd.h \ |
|
src/m_memory.c src/m_memory.h \ |
|
src/m_proctable.c src/m_proctable.h \ |
|
src/main.c src/main.h \ |
|
src/menu.c src/menu.h \ |
|
src/message.c src/message.h \ |
|
src/process.c src/process.h \ |
|
src/proctable.c src/proctable.h \ |
|
src/sigserv.c src/sigserv.h \ |
|
src/proclink.h \ |
|
src/libcfg+ \ |
|
src/libcfg+/cfg+.c src/libcfg+/cfg+.h \ |
|
src/libcfg+/cfgfile.c src/libcfg+/cfgfile.h \ |
|
src/libcfg+/cmdline.c src/libcfg+/cmdline.h \ |
|
src/libcfg+/shared.c src/libcfg+/shared.h \ |
|
src/libcfg+/props.c \ |
|
src/libcfg+/parse.c \ |
|
src/libcfg+/str \ |
|
src/libcfg+/str/dynfgets.c src/libcfg+/str/dynfgets.h \ |
|
src/libcfg+/str/strctype.c src/libcfg+/str/strctype.h \ |
|
src/libcfg+/str/strdyn.c src/libcfg+/str/strdyn.h \ |
|
src/libcfg+/str/strplus.c src/libcfg+/str/strplus.h \ |
|
doc \ |
|
doc/Makefile.in \ |
|
doc/examples \ |
|
doc/examples/01.simple-cat.cfg \ |
|
doc/examples/02.simple-grep.cfg \ |
|
doc/examples/03.advanced-grep.cfg \ |
|
doc/examples/04.continuous-cat.cfg \ |
|
doc/examples/05.paraller-cat.cfg \ |
|
doc/examples/06.write-log.cfg \ |
|
doc/examples/07.read-log.cfg \ |
|
doc/examples/08.session-log.cfg |
|
|
|
# }}} Targets |
|
|
# Programs {{{ |
# Programs {{{ |
#ACLOCAL = @ACLOCAL@ |
#ACLOCAL = @ACLOCAL@ |
Riadok 51 AUTOHEADER = autoheader |
|
Riadok 120 AUTOHEADER = autoheader |
|
|
|
|
|
INSTALL = @INSTALL@ |
INSTALL = @INSTALL@ |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
INSTALL_DATA = @INSTALL_DATA@ |
INSTALL_DATA = @INSTALL_DATA@ |
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
transform = @program_transform_name@ |
transform = @program_transform_name@ |
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
|
LN_S = @LN_S@ |
|
MAKEINFO = @MAKEINFO@ |
|
RANLIB = @RANLIB@ |
|
STRIP = @STRIP@ |
|
AWK = @AWK@ |
|
#JADEWRAP = @JADEWRAP@ |
|
#DOXYGEN = @DOXYGEN@ |
|
TAR = tar |
|
GZIP_ENV = --best |
|
NROFF = nroff |
|
DEPEND = makedepend |
|
|
|
NORMAL_INSTALL = : |
|
PRE_INSTALL = : |
|
POST_INSTALL = : |
|
NORMAL_UNINSTALL = : |
|
PRE_UNINSTALL = : |
|
POST_UNINSTALL = : |
|
|
CC = @CC@ |
CC = @CC@ |
CPP = @CPP@ |
CPP = @CPP@ |
CXX = @CXX@ |
CXX = @CXX@ |
CFLAGS = -O2 -Wall -pedantic -I$(srcdir) -I$(top_builddir) |
#CFLAGS = -O2 -Wall -pedantic |
LN_S = @LN_S@ |
CFLAGS = @CFLAGS@ |
MAKEINFO = @MAKEINFO@ |
CPPFLAGS = |
RANLIB = @RANLIB@ |
LDFLAGS = |
STRIP = @STRIP@ |
DEFS = |
AWK = @AWK@ |
INCLUDES = -I$(srcdir) -I$(top_builddir) |
TAR = tar |
|
GZIP_ENV = --best |
|
NROFF = nroff |
|
DEPEND = makedepend |
|
|
|
CFLAGS = -O2 -Wall -pedantic -I$(srcdir) -I$(top_builddir) @DEBUG_FLAGS@ $(MODULES_FLAGS) |
|
LIBS = @LIBS@ $(MODULES_LIBS) |
|
DEFS = @DEFS@ -DPACKAGE="@PACKAGE@" -DVERSION="@VERSION@" |
|
CPPFLAGS = @CPPFLAGS@ |
|
LDFLAGS = @LDFLAGS@ |
|
|
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
CCLD = $(CC) |
CCLD = $(CC) |
Riadok 83 LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) |
|
Riadok 160 LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) |
|
|
|
# }}} Programs |
# }}} Programs |
|
|
CONFIG_HEADER = config.h |
all: configure-scripts makefiles $(MANS) all-subdirs |
# DISTFILES {{{ |
|
DISTFILES = AUTHORS COPYING INSTALL README TODO \ |
|
configure configure.in Makefile.in config.h.in \ |
|
install-sh mkinstalldirs rebuild \ |
|
src \ |
|
src/Makefile.in \ |
|
src/conf.c src/conf.h \ |
|
src/fd.c src/fd.h \ |
|
src/m_memory.c src/m_memory.h \ |
|
src/m_proctable.c src/m_proctable.h \ |
|
src/main.c src/main.h \ |
|
src/menu.c src/menu.h \ |
|
src/message.c src/message.h \ |
|
src/process.c src/process.h \ |
|
src/proctable.c src/proctable.h \ |
|
src/sigserv.c src/sigserv.h \ |
|
src/proclink.h \ |
|
src/libcfg+ \ |
|
src/libcfg+/cfg+.c src/libcfg+/cfg+.h \ |
|
src/libcfg+/cfgfile.c src/libcfg+/cfgfile.h \ |
|
src/libcfg+/cmdline.c src/libcfg+/cmdline.h \ |
|
src/libcfg+/shared.c src/libcfg+/shared.h \ |
|
src/libcfg+/props.c \ |
|
src/libcfg+/parse.c \ |
|
src/libcfg+/str \ |
|
src/libcfg+/str/dynfgets.c src/libcfg+/str/dynfgets.h \ |
|
src/libcfg+/str/strctype.c src/libcfg+/str/strctype.h \ |
|
src/libcfg+/str/strdyn.c src/libcfg+/str/strdyn.h \ |
|
src/libcfg+/str/strplus.c src/libcfg+/str/strplus.h |
|
# }}} DISTFILES |
|
|
|
|
|
all: makefiles all-subdirs config.h |
|
|
|
makefiles: $(top_builddir)/Makefile \ |
makefiles: $(top_builddir)/Makefile \ |
$(top_builddir)/src/Makefile \ |
$(top_builddir)/src/Makefile \ |
$(top_builddir)/config.status \ |
$(top_builddir)/doc/Makefile |
|
configure-scripts: $(top_builddir)/config.status \ |
$(top_srcdir)/configure \ |
$(top_srcdir)/configure \ |
$(top_builddir)/config.h \ |
$(top_builddir)/config.h \ |
$(srcdir)/config.h.in |
$(top_srcdir)/config.h.in |
|
|
all-subdirs: $(CONFIG_HEADER) |
all-subdirs: all-src all-doc |
@for dir in $(SUBDIRS); \ |
|
do \ |
all-src: |
cd $$dir && $(MAKE) ; \ |
cd $(top_builddir)/src && $(MAKE) |
done |
|
|
all-doc: |
|
cd $(top_builddir)/doc && $(MAKE) |
|
|
|
|
|
.SUFFIXES: |
|
|
|
# Makefiles, configure scripts dependencies {{{ |
|
# Main Makefile |
|
$(top_builddir)/Makefile: $(top_srcdir)/Makefile.in $(top_builddir)/config.status |
|
@cd $(top_builddir) \ |
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= \ |
|
$(SHELL) ./config.status |
|
|
$(top_builddir)/Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
# Makefile in src/ subdirectory |
|
$(top_builddir)/src/Makefile: $(top_srcdir)/src/Makefile.in $(top_builddir)/config.status |
@cd $(top_builddir) \ |
@cd $(top_builddir) \ |
&& CONFIG_FILES=$@ CONFIG_HEADERS= \ |
&& CONFIG_FILES=$@ CONFIG_HEADERS= \ |
$(SHELL) ./config.status |
$(SHELL) ./config.status |
|
|
$(top_builddir)/src/Makefile: $(srcdir)/src/Makefile.in $(top_builddir)/config.status |
# Makefile in doc/ subdirectory |
|
$(top_builddir)/doc/Makefile: $(top_srcdir)/doc/Makefile.in $(top_builddir)/config.status |
@cd $(top_builddir) \ |
@cd $(top_builddir) \ |
&& CONFIG_FILES=$@ CONFIG_HEADERS= \ |
&& CONFIG_FILES=$@ CONFIG_HEADERS= \ |
$(SHELL) ./config.status |
$(SHELL) ./config.status |
|
|
$(top_builddir)/config.status: $(srcdir)/configure.in |
$(top_builddir)/config.status: $(top_srcdir)/configure.in |
@cd $(top_builddir) \ |
@cd $(top_builddir) \ |
$(SHELL) ./config.status --recheck |
&& $(SHELL) ./config.status --recheck |
|
|
$(srcdir)/configure: $(srcdir)/configure.in |
$(top_srcdir)/configure: $(top_srcdir)/configure.in |
@cd $(srcdir) \ |
@cd $(top_builddir) \ |
&& $(AUTOCONF) |
$(SHELL) ./config.status --recheck \ |
|
&& cd $(top_srcdir) \ |
|
&& $(AUTOCONF) |
|
|
$(srcdir)/config.h: $(srcdir)/config.h.in $(top_builddir)/config.status |
$(top_builddir)/config.h: $(top_srcdir)/config.h.in $(top_builddir)/config.status |
@cd $(top_builddir) \ |
@cd $(top_builddir) \ |
&& CONFIG_FILES= CONFIG_HEADERS=config.h \ |
&& CONFIG_FILES= CONFIG_HEADERS=config.h \ |
$(SHELL) ./config.status |
$(SHELL) ./config.status \ |
|
&& touch config.h |
|
|
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in |
$(top_srcdir)/config.h.in: $(top_srcdir)/configure.in |
cd $(top_srcdir) \ |
@cd $(top_srcdir) \ |
&& $(AUTOHEADER) |
&& $(AUTOHEADER) \ |
|
&& touch config.h.in |
# Clean {{{ |
# Makefiles, configure scripts dependencies }}} |
|
|
clean: clean-subdirs |
|
|
clean-hdr: |
clean-subdirs: |
distclean-hdr: |
@for dir in $(SUBDIRS); \ |
-rm -f config.h |
do \ |
|
cd $$dir && $(MAKE) clean; \ |
|
done |
test: |
|
@make dist \ |
|
&& tar xzf $(distdir).tar.gz \ |
|
&& here=`pwd` \ |
|
&& cd $(distdir) \ |
|
&& ./configure --prefix=install_dir \ |
|
&& make --warn-undefined-variables \ |
|
&& make --warn-undefined-variables install \ |
|
&& make --warn-undefined-variables uninstall \ |
|
&& make --warn-undefined-variables dist \ |
|
&& make --warn-undefined-variables distcheck \ |
|
&& banner="Test of compilation ended without errors, super! :-)"; echo; \ |
|
dashes=`echo "$$banner" | sed s/./=/g`; \ |
|
echo "$$dashes"; \ |
|
echo "$$banner"; \ |
|
echo "$$dashes"; \ |
|
cd $$here; \ |
|
rm -rf $(distdir) |
|
|
|
|
|
|
|
# Section: Install {{{ |
|
install: all |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
uninstall: |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
|
installcheck: |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
|
install-exec: |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
uninstall-exec: |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
|
|
install-bin: |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
uninstall-bin: |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
|
|
install-data: |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
|
install-strip: |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
|
clean-maintainer: |
installdirs: |
rm -f config.h config.status config.cache config.log \ |
cd $(top_builddir)/src && $(MAKE) $@ |
Makefile core conftest* *.core src/Makefile src/ep src/*.o |
cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
clean-dist: distclean |
install-man3: |
|
# cd $(top_builddir)/doc && $(MAKE) $@ |
|
uninstall-man3: |
|
# cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
# }}} Clean |
install-man: $(MANS) |
|
# cd $(top_builddir)/doc && $(MAKE) $@ |
|
uninstall-man: |
|
# cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
# Distribution {{{ |
|
|
|
|
# }}} Section: Install |
|
|
|
# Section: TAGS {{{ |
|
tags: TAGS |
|
|
|
ID: |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
TAGS: |
|
cd $(top_builddir)/src && $(MAKE) $@ |
|
|
|
clean-tags: |
|
distclean-tags: |
|
-rm -f TAGS ID |
|
|
|
# }}} Section: TAGS |
|
|
|
# Section: distribution {{{ |
# This target untars the dist file and tries a VPATH configuration. Then |
# This target untars the dist file and tries a VPATH configuration. Then |
# it guarantees that the distribution is self-contained by making another |
# it guarantees that the distribution is self-contained by making another |
# tarfile. |
# tarfile. |
distcheck: dist |
distcheck: dist |
-rm -rf $(distdir) |
-rm -rf $(distdir) |
GZIP=$(GZIP_ENV) $(TAR) xzf $(distdir).tar.gz |
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz |
mkdir $(distdir)/=build |
mkdir $(distdir)/=build |
mkdir $(distdir)/=inst |
mkdir $(distdir)/=inst |
dc_install_base=`cd $(distdir)/=inst && pwd`; \ |
dc_install_base=`cd $(distdir)/=inst && pwd`; \ |
cd $(distdir)/=build \ |
cd $(distdir)/=build \ |
&& ../configure --srcdir=.. --prefix=$$dc_install_base \ |
&& ../configure --srcdir=.. --prefix=$$dc_install_base \ |
&& $(MAKE) \ |
&& $(MAKE) --warn-undefined-variables \ |
&& $(MAKE) install \ |
&& $(MAKE) --warn-undefined-variables dvi \ |
&& $(MAKE) installcheck \ |
&& $(MAKE) --warn-undefined-variables check \ |
&& $(MAKE) dist |
&& $(MAKE) --warn-undefined-variables install \ |
|
&& $(MAKE) --warn-undefined-variables installcheck \ |
|
&& $(MAKE) --warn-undefined-variables dist |
-rm -rf $(distdir) |
-rm -rf $(distdir) |
@banner="$(distdir).tar.gz is ready for distribution"; \ |
@banner="$(distdir).tar.gz is ready for distribution"; \ |
dashes=`echo "$$banner" | sed s/./=/g`; \ |
dashes=`echo "$$banner" | sed s/./=/g`; \ |
echo "$$dashes"; \ |
echo "$$dashes"; \ |
echo "$$banner"; \ |
echo "$$banner"; \ |
echo "$$dashes" |
echo "$$dashes" |
|
|
dist: distdir |
|
-chmod -R a+r $(distdir) |
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
|
-rm -rf $(distdir) |
|
|
|
dist-all: distdir |
dist-all: dist |
-chmod -R a+r $(distdir) |
dist: distdir distdir-permisions |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
-rm -rf $(distdir) |
-rm -rf $(distdir) |
|
-@banner="md5sum is: `md5sum $(distdir).tar.gz |tee md5sum.$(distdir)`"; \ |
|
dashes=`echo "$$banner" | sed s/./=/g`; \ |
|
echo "$$dashes"; \ |
|
echo "$$banner"; \ |
|
echo "$$dashes" |
|
|
distdir: $(DISTFILES) |
distdir: $(DISTFILES) |
-rm -rf $(distdir) |
-rm -rf $(distdir) |
mkdir $(distdir) |
mkdir $(distdir) |
-chmod 755 $(distdir) |
-chmod a+rx $(distdir) |
here=`cd $(top_builddir) && pwd`; \ |
@here=`cd $(top_builddir) && pwd`; \ |
top_distdir=`cd $(distdir) && pwd`; \ |
top_distdir=`cd $(distdir) && pwd`; \ |
distdir=`cd $(distdir) && pwd`; |
distdir=`cd $(distdir) && pwd`; \ |
@FILES=`echo "$(DISTFILES)" | awk 'BEGIN{RS=" "}{print}' | sort -u`; \ |
umask 022; \ |
for file in $$FILES; do \ |
for file in $(DISTFILES); do \ |
d=$(srcdir); \ |
d=$(srcdir); \ |
if test -d $$d/$$file; then \ |
if test -d $$d/$$file; then \ |
mkdir $(distdir)/$$file; \ |
mkdir $(distdir)/$$file; \ |
else \ |
else \ |
test -f $(distdir)/$$file \ |
test -f $(distdir)/$$file \ |
|| cp -p $$d/$$file $(distdir)/$$file || :; \ |
|| cp $$d/$$file $(distdir)/$$file || :; \ |
fi; \ |
fi; \ |
done |
done |
|
|
|
# || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
|
|
distclean: |
distdir-permisions: |
-rm -rf $(distdir) $(distdir).tar.gz |
@for file in $(DISTFILES); do \ |
|
if test -d $(distdir)/$$file; then \ |
# }}} Distribution |
chmod a+rx $(distdir)/$$file; \ |
|
else \ |
# Install {{{ |
test -f $(distdir)/$$file \ |
|
&& chmod a+r $(distdir)/$$file; \ |
install: install-bin install-man |
fi; \ |
|
if test -x $(srcdir)/$$file; then \ |
install-bin: |
chmod a+x $(distdir)/$$file; \ |
|
fi; \ |
install-man: |
done |
|
|
installcheck: |
distclean-generic: |
|
-rm -f Makefile $(CONFIG_CLEAN_FILES) |
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]* |
|
|
|
distclean: distclean-hdr distclean-tags distclean-generic clean |
|
-rm -f config.status |
|
|
|
# }}} Section: distribution |
|
|
|
info: |
|
dvi: |
|
check: all |
|
|
|
clean: clean-src clean-doc clean-hdr clean-tags mostlyclean |
|
-rm -rf *.o core *.core .deps/ |
|
-rm -f md5sum* |
|
|
|
|
|
clean-src: |
|
cd $(top_builddir)/src && $(MAKE) clean |
|
|
|
clean-doc: |
|
cd $(top_builddir)/doc && $(MAKE) clean |
|
|
|
|
|
mostlyclean: |
|
|
|
maintainer-clean: distclean |
|
@echo "This command is intended for maintainers to use;" |
|
@echo "it deletes files that may require special tools to rebuild." |
|
-rm -f config.status |
|
-rm -f $(PACKAGE)-*.tar.gz |
|
|
|
|
|
# PHONY {{{ |
|
.PHONY: distclean-hdr clean-hdr \ |
|
install uninstall installdirs \ |
|
install-exec install-data \ |
|
install-man3 uninstall-man3 \ |
|
install-man uninstall-man \ |
|
install-lib uninstall-lib \ |
|
install-includeHEADERS uninstall-includeHEADERS \ |
|
tags \ |
|
distclean-tags clean-tags distdir info \ |
|
dvi check installcheck \ |
|
distclean-generic clean-generic \ |
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean |
|
# }}} PHONY |
|
|
|
.PHONY: sources |
|
sources: |
|
cd $(top_builddir)/src/ && make $@ |
|
|
|
.PHONY: lclint |
|
lclint: |
|
cd $(top_builddir)/src/ && make $@ |
|
|
|
.PHONY: archive |
|
archive: |
|
@echo "This is $(PACKAGE)-$(VERSION)." |
|
@sleep 5 |
|
@cvs -Q tag -F $(CVSTAG) . |
|
@rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE) |
|
@cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(PACKAGE) || : |
|
@mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION) |
|
@cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh ; make depend; make distclean |
|
@cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh --noconfigure |
|
@cd /tmp; tar czSpf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) |
|
@rm -rf /tmp/$(PACKAGE)-$(VERSION) |
|
@cp /tmp/$(PACKAGE)-$(VERSION).tar.gz . |
|
@rm -f /tmp/$(PACKAGE)-$(VERSION).tar.gz |
|
@echo " " |
|
@echo "The final archive is ./$(PACKAGE)-$(VERSION).tar.gz." |
|
|
# }}} Install |
|
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
# Otherwise a system limit (for SysV at least) may be exceeded. |
# Otherwise a system limit (for SysV at least) may be exceeded. |
.NOEXPORT: |
.NOEXPORT: |
|
|
# vim:set ts=4: |
# vim600: fdm=marker fdc=3 |
# vim600:fdm=marker fdl=0 fdc=3: |
|