version 1.6, 2002/02/04 00:17:30 |
version 1.9, 2002/10/01 18:32:14 |
|
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am; |
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
# modified ! |
# This Makefile.in is free software; the Free Software Foundation |
# (by rajo) |
# gives unlimited permission to copy and/or distribute it, |
# |
# with or without modifications, as long as this notice is preserved. |
# Rajo a kde mas ten Makefile.am? Ja ho nikde nevidim... |
|
# Nepto |
# 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 |
# AK CHCES PRIDAT NOVY SUBOR DO KNIZNICE, TAK TOTO JE NESPRAVNE MIESTO. # |
# PARTICULAR PURPOSE. |
# POZRI RADSEJ SUBOR ./configure V TOMTO ADRESARI. # |
|
# --------------------------------------------------------------------- # |
|
|
|
# |
|
# Author: rajo <host8@kepler.fmph.uniba.sk> |
|
# |
|
# Copyright (c) rajo |
|
# |
|
|
|
# $Id$ |
# Main Makefile for libcfg+ library. |
|
# $Id$ |
|
|
PACKAGE = libplaton |
PACKAGE = @PACKAGE@ |
VERSION = 1.0 |
VERSION = @VERSION@ |
|
|
# Directories {{{ |
CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
srcdir = @srcdir@ |
|
top_srcdir = @top_srcdir@ |
|
VPATH = @srcdir@ |
|
prefix = @prefix@ |
|
exec_prefix = @exec_prefix@ |
|
|
|
bindir = @bindir@ |
|
sbindir = @sbindir@ |
|
libexecdir = @libexecdir@ |
|
sysconfdir = @sysconfdir@ |
|
sharedstatedir = @sharedstatedir@ |
|
localstatedir = @localstatedir@ |
|
libdir = @libdir@ |
|
infodir = @infodir@ |
|
mandir = @mandir@ |
|
includedir = @includedir@ |
|
oldincludedir = /usr/include |
|
datadir = $(prefix)/@DATADIRNAME@ |
|
|
|
DESTDIR = |
SHELL = @SHELL@ |
|
|
top_builddir = . |
# Directories {{{ |
|
top_builddir = . |
|
srcdir = @srcdir@ |
|
top_srcdir = @top_srcdir@ |
|
VPATH = @srcdir@ |
|
prefix = @prefix@ |
|
exec_prefix = @exec_prefix@ |
|
|
|
bindir = @bindir@ |
|
sbindir = @sbindir@ |
|
libexecdir = @libexecdir@ |
|
datadir = @datadir@ |
|
sysconfdir = @sysconfdir@ |
|
sharedstatedir = @sharedstatedir@ |
|
localstatedir = @localstatedir@ |
|
libdir = @libdir@ |
|
infodir = @infodir@ |
|
mandir = @mandir@ |
|
man3dir = $(mandir)/man3 |
|
includedir = @includedir@ |
|
includedir_platon = $(includedir)/platon |
|
oldincludedir = /usr/include |
|
|
|
DESTDIR = |
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@ |
|
pkglibdir = $(libdir)/@PACKAGE@ |
|
pkgincludedir = $(includedir)/@PACKAGE@ |
|
|
# }}} Directories |
distdir = $(PACKAGE)-$(VERSION) |
|
top_distdir = $(distdir) |
|
|
# Flags {{{ |
# }}} Directories |
LIBS = @LIBS@ |
|
DEFS = @DEFS@ |
|
CPPFLAGS = @CPPFLAGS@ |
|
LDFLAGS = @LDFLAGS@ |
|
CFLAGS = @CFLAGS@ @DEBUG@ |
|
|
|
libplaton_LDADD = $(LDADD) |
|
libplaton_DEPENDENCIES = |
|
libplaton_LDFLAGS = |
|
# }}} Flags |
|
|
|
# Enviroment {{{ |
|
GZIP_ENV = --best |
|
# }}} Enviroment |
|
|
|
# Programs {{{ |
# Programs {{{ |
CC = @CC@ |
#ACLOCAL = @ACLOCAL@ |
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
#AUTOCONF = @AUTOCONF@ |
CCLD = $(CC) |
#AUTOMAKE = @AUTOMAKE@ |
LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ |
#AUTOHEADER = @AUTOHEADER@ |
|
ACLOCAL = aclocal |
SHELL = @SHELL@ |
AUTOCONF = autoconf |
LN_S = @LN_S@ |
AUTOMAKE = automake |
STRIP = @STRIP@ |
AUTOHEADER = autoheader |
TAR = tar |
|
NROFF = nroff |
|
MAKE = make |
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 |
|
LN_S = @LN_S@ |
AR = ar |
MAKEINFO = @MAKEINFO@ |
RANLIB = ranlib |
RANLIB = @RANLIB@ |
LD = ld |
STRIP = @STRIP@ |
|
AWK = @AWK@ |
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
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@ |
|
CPP = @CPP@ |
|
CXX = @CXX@ |
|
CFLAGS = -O2 -Wall -pedantic |
|
CPPFLAGS = @CPPFLAGS@ |
|
LDFLAGS = @LDFLAGS@ |
|
DEFS = @DEFS@ |
|
INCLUDES = -I$(srcdir) -I$(top_builddir) |
|
|
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
|
CCLD = $(CC) |
|
LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ |
|
|
# }}} Programs |
# }}} Programs |
|
|
# Target names, objects {{{ |
# Targets {{{ |
libplaton_DIRS = @libplaton_DIRS@ |
|
libplaton_SOURCES = @libplaton_SOURCES@ |
|
libplaton_HEADERS = @libplaton_HEADERS@ |
|
libplaton_OBJECTS = @libplaton_OBJECTS@ |
|
|
|
libplaton_SOURCES_html = @libplaton_SOURCES_html@ |
|
libplaton_HEADERS_html = @libplaton_HEADERS_html@ |
|
libplaton_OBJECTS_html = @libplaton_OBJECTS_html@ |
|
|
|
libplaton_SOURCES_str = @libplaton_SOURCES_str@ |
|
libplaton_HEADERS_str = @libplaton_HEADERS_str@ |
|
libplaton_OBJECTS_str = @libplaton_OBJECTS_str@ |
|
|
|
libplaton_SOURCES_telnet = @libplaton_SOURCES_telnet@ |
|
libplaton_HEADERS_telnet = @libplaton_HEADERS_telnet@ |
|
libplaton_OBJECTS_telnet = @libplaton_OBJECTS_telnet@ |
|
|
|
libplaton_SOURCES_utils = @libplaton_SOURCES_utils@ |
|
libplaton_HEADERS_utils = @libplaton_HEADERS_utils@ |
|
libplaton_OBJECTS_utils = @libplaton_OBJECTS_utils@ |
|
|
|
libplaton_LIB = libplaton |
|
libplaton_html_LIB = libplaton_html |
|
libplaton_str_LIB = libplaton_str |
|
libplaton_telnet_LIB = libplaton_telnet |
|
libplaton_utils_LIB = libplaton_utils |
|
|
|
SOURCES = $(libplaton_SOURCES) |
|
HEADERS = $(libplaton_HEADERS) |
|
OBJECTS = $(libplaton_OBJECTS) |
|
libplaton_STATIC_LIB = $(libplaton_LIB).a |
|
libplaton_DYNAMIC_LIB = $(libplaton_LIB).so |
|
libplaton_DYNAMICV_LIB = $(libplaton_LIB)-$(VERSION).so |
|
|
|
EXTRA_DIST = BUGS CREDITS ChangeLog TODO |
|
DIST_COMMON = README AUTHORS COPYING INSTALL \ |
|
configure install-sh mkinstalldirs \ |
|
Makefile.in html/Makefile str/Makefile \ |
|
telnet/Makefile utils/Makefile |
|
DISTFILES = $(libplaton_DIRS) $(SOURCES) $(HEADERS) \ |
|
$(DIST_COMMON) $(TEXINFOS) $(EXTRA_DIST) |
|
# }}} Target names, objects |
|
|
|
|
|
all: all-subdirs static dynamic |
|
|
|
all-subdirs: |
|
for i in $(libplaton_DIRS) ; do \ |
|
back=`pwd`; \ |
|
cd $(srcdir)/$$i && $(MAKE) && cd $$back ; \ |
|
done |
|
|
|
static: $(libplaton_STATIC_LIB) |
|
|
|
dynamic: $(libplaton_DYNAMIC_LIB) |
|
|
|
$(libplaton_STATIC_LIB): $(OBJECTS) |
|
cd $(srcdir) && $(AR) r $@ $(OBJECTS) |
|
|
|
$(libplaton_DYNAMIC_LIB): $(OBJECTS) |
|
cd $(srcdir) && $(LD) $(LDFLAGS) -shared -o $@ $(OBJECTS) |
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) |
|
cd $(top_builddir) \ |
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
|
|
|
config.status: $(srcdir)/configure |
|
$(SHELL) ./config.status --recheck |
|
|
|
.s.o: |
CONFIG_HEADER = $(top_builddir)/config.h |
$(COMPILE) -c $< |
include_HEADERS = |
|
noinst_HEADERS = platon/cfgfile.h \ |
|
platon/cmdline.h \ |
|
platon/shared.h \ |
|
platon/str/dynfgets.h \ |
|
platon/str/strctype.h \ |
|
platon/str/strdyn.h \ |
|
platon/str/strplus.h |
|
|
|
noinst_SCRIPTS = |
|
|
|
man_MANS = |
|
man3_MANS = |
|
MANS = $(man_MANS) $(man3_MANS) |
|
|
|
CONFIG_CLEAN_FILES = $(top_builddir)/Makefile \ |
|
$(top_builddir)/doc/Makefile \ |
|
$(top_builddir)/platon/html/Makefile \ |
|
$(top_builddir)/platon/misc/Makefile \ |
|
$(top_builddir)/platon/net/atlantis/Makefile \ |
|
$(top_builddir)/platon/net/smtp/Makefile \ |
|
$(top_builddir)/platon/net/Makefile \ |
|
$(top_builddir)/platon/str/Makefile \ |
|
$(top_builddir)/platon/Makefile \ |
|
$(top_builddir)/utils/Makefile |
|
|
|
SCRIPTS = $(noinst_SCRIPTS) |
|
|
|
HEADERS = $(include_HEADERS) $(noinst_HEADERS) $(CONFIG_HEADER) |
|
|
|
DISTFILES = AUTHORS COPYING README INSTALL TODO \ |
|
Makefile.in configure.in \ |
|
config.h.in \ |
|
config.guess config.sub configure \ |
|
install-sh mkinstalldirs rebuild \ |
|
platon/ \ |
|
$(include_HEADERS) $(noinst_HEADERS) \ |
|
doc/ |
|
|
|
# }}} Targets |
|
|
|
all: configure-scripts makefiles $(MANS) all-subdirs |
|
|
|
makefiles: $(top_builddir)/Makefile \ |
|
$(top_builddir)/doc/Makefile \ |
|
$(top_builddir)/platon/html/Makefile \ |
|
$(top_builddir)/platon/misc/Makefile \ |
|
$(top_builddir)/platon/net/atlantis/Makefile \ |
|
$(top_builddir)/platon/net/smtp/Makefile \ |
|
$(top_builddir)/platon/net/Makefile \ |
|
$(top_builddir)/platon/str/Makefile \ |
|
$(top_builddir)/platon/Makefile \ |
|
$(top_builddir)/utils/Makefile |
|
configure-scripts: $(top_builddir)/config.status \ |
|
$(top_srcdir)/configure \ |
|
$(top_builddir)/config.h \ |
|
$(top_srcdir)/config.h.in |
|
|
|
all-subdirs: all-src all-utils |
|
|
|
all-src: |
|
cd $(top_builddir)/platon && $(MAKE) |
|
|
|
all-utils: |
|
cd $(top_builddir)/utils && $(MAKE) |
|
|
|
#all-doc target doesn't exists, because documentation |
|
# is already builded in distribution package |
|
documentation: |
|
cd $(top_builddir)/doc && $(MAKE) |
|
|
|
# don't change dependency files, because this causes make |
|
# to rebuild them. Use trick with '-c' (stdout). |
|
%.gz: % |
|
$(GZIP) -f -c $< > $@ |
|
|
|
|
|
static: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
|
|
dynamic: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
|
|
lib: |
|
cd $(top_builddir)/platon && $(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 |
|
|
|
# Makefile in platon/ subdirectory |
|
$(top_builddir)/%/Makefile: $(top_srcdir)/%/Makefile.in $(top_builddir)/config.status |
|
@cd $(top_builddir) \ |
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= \ |
|
$(SHELL) ./config.status |
|
|
|
$(top_builddir)/config.status: $(top_srcdir)/configure.in |
|
@cd $(top_builddir) \ |
|
&& $(SHELL) ./config.status --recheck |
|
|
|
$(top_srcdir)/configure: $(top_srcdir)/configure.in |
|
@cd $(top_builddir) \ |
|
$(SHELL) ./config.status --recheck \ |
|
&& cd $(top_srcdir) \ |
|
&& $(AUTOCONF) |
|
|
|
$(top_builddir)/config.h: $(top_srcdir)/config.h.in \ |
|
$(top_builddir)/config.status |
|
@cd $(top_builddir) \ |
|
&& CONFIG_FILES= CONFIG_HEADERS=config.h \ |
|
$(SHELL) ./config.status \ |
|
&& touch config.h |
|
|
|
$(top_srcdir)/config.h.in: $(top_srcdir)/configure.in |
|
@cd $(top_srcdir) \ |
|
&& $(AUTOHEADER) \ |
|
&& touch config.h.in |
|
# Makefiles, configure scripts dependencies }}} |
|
|
|
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)/platon && $(MAKE) $@ |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
uninstall: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
|
installcheck: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
|
install-exec: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
uninstall-exec: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
|
|
install-lib: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
uninstall-lib: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
|
|
install-data: |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
|
install-strip: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
|
|
installdirs: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
|
install-man: $(MANS) |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
uninstall-man: |
|
cd $(top_builddir)/doc && $(MAKE) $@ |
|
|
|
install-includeHEADERS: $(include_HEADERS) |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
uninstall-includeHEADERS: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
|
|
|
|
# }}} Section: Install |
|
|
|
# Section: TAGS {{{ |
|
tags: TAGS |
|
|
|
ID: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
TAGS: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
|
.S.o: |
# }}} Section: TAGS |
$(COMPILE) -c $< |
|
|
|
clean: clean-subdirs |
|
rm -f $(libplaton_STATIC_LIB) $(libplaton_DYNAMIC_LIB) $(libplaton_DYNAMICV_LIB) core |
|
|
|
clean-subdirs: |
|
for i in $(libplaton_DIRS) ; do \ |
|
back=`pwd`; \ |
|
cd $(srcdir)/$$i && $(MAKE) clean && cd $$back ; \ |
|
done |
|
|
|
# ID & tags {{{ |
|
ID: $(HEADERS) $(SOURCES) $(LISP) |
|
list='$(SOURCES) $(HEADERS)'; \ |
|
unique=`for i in $$list; do echo $$i; done | \ |
|
awk ' { files[$$0] = 1; } \ |
|
END { for (i in files) print i; }'`; \ |
|
here=`pwd` && cd $(srcdir) \ |
|
&& mkid -f$$here/ID $$unique $(LISP) |
|
|
|
tags: |
|
ctags -o TAGS $(HEADERS) $(SOURCES) |
|
|
|
clean-tags: |
|
-rm -f TAGS ID |
|
|
|
distclean-tags: |
|
-rm -f TAGS ID |
|
|
|
maintainer-clean-tags: |
|
# }}} ID & tags |
|
|
|
# Distribution {{{ |
|
distdir = $(PACKAGE)-$(VERSION) |
|
top_distdir = $(distdir) |
|
|
|
|
# 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. |
|
|
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) $(AM_MAKEFLAGS) \ |
&& $(MAKE) --warn-undefined-variables \ |
# && $(MAKE) $(AM_MAKEFLAGS) check \ |
&& $(MAKE) --warn-undefined-variables dvi \ |
# && $(MAKE) $(AM_MAKEFLAGS) install \ |
&& $(MAKE) --warn-undefined-variables documentation \ |
# && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
&& $(MAKE) --warn-undefined-variables check \ |
&& $(MAKE) $(AM_MAKEFLAGS) 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) |
dist-all: dist |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
dist: distdir distdir-permisions |
-rm -rf $(distdir) |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
dist-all: distdir |
@#BZIP=$(GZIP_ENV) $(TAR) chojf $(distdir).tar.bz2 $(distdir) |
-chmod -R a+r $(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" |
|
|
|
# These target are needed for 'distdir' -- it creates documentation |
|
# included in tarball before creating distribution dir. |
|
doc/html: documentation |
|
doc/html/*: documentation |
|
doc/doxygen/*: documentation |
distdir: $(DISTFILES) |
distdir: $(DISTFILES) |
-rm -rf $(distdir) |
-rm -rf $(distdir) |
mkdir $(distdir) |
mkdir $(distdir) |
-chmod 777 $(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`; \ |
@for file in $(DISTFILES); do \ |
umask 022; \ |
|
for file in $(DISTFILES); do \ |
d=$(srcdir); \ |
d=$(srcdir); \ |
if test -d $$d/$$file; then \ |
if test -d $$d/$$file; then \ |
$(mkinstalldirs) $(distdir)/$$file; \ |
mkdir $(distdir)/$$file; \ |
|
else \ |
|
test -f $(distdir)/$$file \ |
|
|| cp $$d/$$file $(distdir)/$$file || :; \ |
|
fi; \ |
|
done |
|
|
|
# || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
|
|
|
distdir-permisions: |
|
@for file in $(DISTFILES); do \ |
|
if test -d $(distdir)/$$file; then \ |
|
chmod a+rx $(distdir)/$$file; \ |
else \ |
else \ |
test -f $(distdir)/$$file \ |
test -f $(distdir)/$$file \ |
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
&& chmod a+r $(distdir)/$$file; \ |
|| cp -p $$d/$$file $(distdir)/$$file || :; \ |
fi; \ |
|
if test -x $(srcdir)/$$file; then \ |
|
chmod a+x $(distdir)/$$file; \ |
fi; \ |
fi; \ |
done |
done |
# }}} Distribution |
|
|
|
# Libs: {{{ |
# }}} Section: distribution |
|
|
|
info: |
|
dvi: |
|
check: all |
|
|
|
# Section clean {{{ |
|
|
|
clean: clean-src clean-hdr |
|
-rm -rf *.o core *.core .deps/ debian-build/ |
|
-rm -f md5sum* *.deb |
|
|
|
clean-src: |
|
cd $(top_builddir)/platon && $(MAKE) clean |
|
|
|
clean-doc: |
|
cd $(top_builddir)/doc && $(MAKE) clean |
|
|
|
clean-tags: |
|
cd $(top_builddir)/platon && $(MAKE) $@ |
|
|
|
clean-hdr: |
|
-rm -f config.h |
|
|
|
|
|
mostlyclean: mostlyclean-src mostlyclean-hdr clean-tags |
|
-rm -rf *.o core *.core .deps/ |
|
-rm -f md5sum* *.deb |
|
|
|
mostlyclean-src: |
|
cd $(top_builddir)/platon && $(MAKE) mostlyclean |
|
mostlyclean-hdr: |
|
cd $(top_builddir)/platon && $(MAKE) mostlyclean |
|
|
|
maintainer-clean: distclean maintainer-clean-generic |
|
@echo |
|
@echo "-----------------------------------------------------------" |
|
@echo "This command is intended for maintainers to use;" |
|
@echo "it deletes files that may require special tools to rebuild." |
|
@echo "-----------------------------------------------------------" |
|
@echo |
|
|
|
maintainer-clean-generic: |
|
-rm -f $(top_builddir)/config.status $(top_srcdir)/configure |
|
-rm -f $(top_srcdir)/config.h.in |
|
-rm -f $(top_builddir)/$(PACKAGE)-*.tar.gz |
|
-rm -f $(top_builddir)/*.deb |
|
|
|
|
|
distclean: distclean-src distclean-doc distclean-hdr \ |
|
distclean-tags distclean-generic |
|
-rm -f config.status |
|
-rm -rf *.o core *.core .deps/ debian-build |
|
-rm -f md5sum* *.deb |
|
-rm -rf $(distdir) $(distdir).tar.gz |
|
|
|
distclean-src: |
|
cd $(top_builddir)/platon && $(MAKE) distclean |
|
|
|
distclean-doc: |
|
cd $(top_builddir)/doc && $(MAKE) distclean |
|
|
|
distclean-hdr: |
|
-rm -f config.h |
|
|
|
distclean-tags: |
|
-rm -f TAGS ID |
|
|
|
distclean-generic: |
|
-rm -f Makefile $(CONFIG_CLEAN_FILES) |
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]* |
|
|
|
# }}} Section clean |
|
|
|
# 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)/platon && $(MAKE) $@ |
|
|
|
.PHONY: lclint |
|
lclint: |
|
cd $(top_builddir)/platon && $(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." |
|
|
|
# Create RPM |
|
# This target is for maintainers only! |
|
rpm: rpm-clean spec dist |
|
mkdir rpm |
|
rpmbuild -ba contrib/libcfg+.spec ; |
|
|
|
spec: $(PACKAGE).spec |
|
|
|
rpm-clean: |
|
rm -rf rpm |
|
|
|
# Create Debian distribution package |
|
# This target is for maintainers only! |
|
deb: |
|
rm -rf debian-build |
|
mkdir debian-build && cd debian-build \ |
|
&& here=`pwd`/$(PACKAGE)_$(VERSION)_all \ |
|
&& ../$(top_srcdir)/configure \ |
|
--prefix=$$here/usr \ |
|
--exec-prefix=$$here/usr \ |
|
--mandir=$$here/usr/share/man \ |
|
&& $(MAKE) install deb-copy \ |
|
&& mv DEBIAN/ $(PACKAGE)_$(VERSION)_all \ |
|
&& chmod 0755 $(PACKAGE)_$(VERSION)_all/DEBIAN \ |
|
&& dpkg-deb --build $(PACKAGE)_$(VERSION)_all \ |
|
&& mv $(PACKAGE)_$(VERSION)_all.deb ../ \ |
|
&& cd .. \ |
|
&& rm -rf debian-build |
|
-@banner="md5sum is: `md5sum $(PACKAGE)_$(VERSION)_all.deb |tee md5sum.$(PACKAGE)_$(VERSION)_all.deb`"; \ |
|
dashes=`echo "$$banner" | sed s/./=/g`; \ |
|
echo "$$dashes"; \ |
|
echo "$$banner"; \ |
|
echo "$$dashes" |
|
|
|
.PHONY: deb deb-copy |
|
|
|
deb-copy: |
|
mkdir -p ./DEBIAN |
|
cp $(top_srcdir)/contrib/debian/changelog ./DEBIAN |
|
cp $(top_srcdir)/contrib/debian/conffiles ./DEBIAN |
|
cp $(top_srcdir)/contrib/debian/copyright ./DEBIAN |
|
sed 's/@''PACKAGE''@/$(PACKAGE)/g; s/@''VERSION''@/$(VERSION)/g;' \ |
|
$(top_srcdir)/contrib/debian/control.in > ./DEBIAN/control |
|
|
$(libplaton_LIB): |
|
LIBOBJS=`find $(libplaton_DIRS) -name \*.o -print`; \ |
|
cd $(srcdir) && $(AR) $@ $$LIBOBJS |
|
$(RANLIB) $@ |
|
|
|
# }}} Libs: |
|
|
|
# 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: |
# Help {{{ |
# vim600:fdm=marker fdl=0 fdc=3: |
.PHONY: help |
|
help: |
|
@echo |
|
@echo "Common targets:" |
|
@echo "---------------" |
|
@echo "make [all] - builds sources, don't builds documentation" |
|
@echo "make help - print this help" |
|
@echo "make install - install all files to destination" |
|
@echo "make uninstall - remove installed files" |
|
@echo "make clean - remove builded files, don't remove documentation" |
|
@echo |
|
@echo "Targets for maintainers only:" |
|
@echo "-----------------------------" |
|
@echo "make dist - create distribution package" |
|
@echo "make distcheck - test package" |
|
@echo "make documentation - build documentation" |
|
@echo "make distclean - remove builded files (also documentation)" |
|
@echo |
|
# }}} |
|
|
|
# vim600: fdm=marker fdc=3 |
|
|