X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2FMakefile.am;h=191b60d08cbfd7f554e25c33cd5d52b1713b088a;hb=c7c8fb180831d60ad8943253134bdcc75a4f8062;hp=a466273dc51186efc963b5890072b53697aece19;hpb=1c29d7bcb9f9458a98f701b7fb0129495d8c06bc;p=util-vserver.git diff --git a/util-vserver/Makefile.am b/util-vserver/Makefile.am index a466273..191b60d 100644 --- a/util-vserver/Makefile.am +++ b/util-vserver/Makefile.am @@ -18,6 +18,10 @@ # ACLOCAL_AMFLAGS = -I m4 +SUBDIRS = . distrib + +CVS2CL_AMFLAGS = $(CVS2CL_TAG) -U cvsusers.map +CVS2CL_ALLFLAGS := $(CVS2CL_AMFLAGS) $(CVS2CL_FLAGS) sysvdir = $(sysconfdir)/init.d confdir = $(sysconfdir)/vservers @@ -27,8 +31,8 @@ noinst_HEADERS = $(src_HDRS) lib_LIBRARIES = $(lib_lib_LIBS) -pkglib_SCRIPTS = $(distrib_SCRPTS) $(scripts_SCRPTS) -pkglib_DATA = $(distrib_DAT) $(scriptscfg_DATA) +pkglib_SCRIPTS = $(scripts_SCRPTS) +pkglib_DATA = $(scriptscfg_DATA) pkglib_PROGRAMS = $(src_pkglib_PRGS) sbin_SCRIPTS = $(scripts_PRGS) @@ -37,24 +41,25 @@ noinst_PROGRAMS = $(test_PRGS) sysv_SCRIPTS = $(sysv_SCRPTS) sysconf_DATA = $(sysv_CFG) -conf_DATA = newvserver.defaults -BUILT_SOURCES = linuxcaps.h +BUILT_SOURCES = linuxcaps.h pathconfig.h man_MANS = $(man_DATMAN) -EXTRA_DIST = $(distrib_SCRPTS) $(distrib_DAT) \ - $(sysv_XTRAS) $(sysv_CFG) \ +EXTRA_DIST = $(sysv_XTRAS) $(sysv_CFG) \ $(doc_DAT) $(man_DATMAN) \ $(scripts_SCRPTS) $(scripts_PRGS) $(scripts_XTRAS) \ - vserver.spec newvserver.defaults \ + pathconfig.h.pathsubst \ + util-vserver.spec \ m4/ensc_cflags.m4 \ THANKS -AM_CPPFLAGS = -I $(top_srcdir)/lib -D VERSION=\"$(VERSION)\" -D PKGLIBDIR=\"$(pkglibdir)\" -D _GNU_SOURCE +AM_CPPFLAGS = -I $(top_srcdir)/lib -D _GNU_SOURCE AM_CFLAGS = -Wall -pedantic -CLEANFILES = $(sysv_GENSCRPTS) $(scripts_GENSCRPTS) linuxcaps.h +CLEANFILES = $(sysv_GENSCRPTS) $(scripts_GENSCRPTS) \ + .*.pathsubst.stamp */.*.pathsubst.stamp \ + linuxcaps.h pathconfig.h if USE_DIETLIBC DIET = diet @@ -63,12 +68,22 @@ DIET_CC := $(DIET) $(DIET_FLAGS) $(CC) endif linuxcaps.h: - ln -sf ${kernelincludedir}/linux/capability.h linuxcaps.h + ln -sf ${kernelincludedir}/linux/capability.h linuxcaps.h + +pathconfig.h: .pathconfig.h.pathsubst.stamp +.%.pathsubst.stamp: %.pathsubst Makefile + @mkdir -p $$(dirname '$@') + sed -e 's!@'PKGLIBDIR'@!$(pkglibdir)!g; \ + s!@'SBINDIR'@!$(sbindir)!g; \ + s!@'CONFDIR'@!$(confdir)!g; \ + s!@'SYSCONFDIR'@!$(sysconfdir)!g' '$<' >'$@.tmp' + if cmp -s '$@.tmp' '$*'; then rm -f '$@.tmp'; else rm -f '$*'; mv '$@.tmp' '$*'; fi + @chmod a-w '$*' + @touch '$@' include $(top_srcdir)/lib/Makefile-files include $(top_srcdir)/src/Makefile-files -include $(top_srcdir)/distrib/Makefile-files include $(top_srcdir)/doc/Makefile-files include $(top_srcdir)/man/Makefile-files include $(top_srcdir)/scripts/Makefile-files