X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2FMakefile.am;h=5a20d151f838ed2bc9637d40720661e7f471173b;hb=6557b6f84f9d2dbf04eab2f72e46cd171fecece5;hp=53f6c6948ae33e11c4acd634f1cf610c460bc180;hpb=8a76b648c6d5d65fa3f5b4f0a5cd2dde481b6a00;p=util-vserver.git diff --git a/util-vserver/Makefile.am b/util-vserver/Makefile.am index 53f6c69..5a20d15 100644 --- a/util-vserver/Makefile.am +++ b/util-vserver/Makefile.am @@ -53,7 +53,8 @@ sysconf_DATA = DIETPROGS = $(ENSC_VECTOR_LIBS) -BUILT_SOURCES = linuxcaps.h pathconfig.h linuxvirtual.h +BUILT_SOURCES = linuxcaps.h pathconfig.h linuxvirtual.h \ + .fixups man_MANS = @@ -79,11 +80,12 @@ TESTS = TESTS_ENVIRONMENT = -AM_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/ensc_wrappers -D _GNU_SOURCE $(RELEASE_CPPFLAGS) +AM_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/ensc_wrappers \ + -D_GNU_SOURCE -D_REENTRANT $(RELEASE_CPPFLAGS) CLEANFILES = $(BUILT_SOURCES) \ .*.pathsubst.stamp */.*.pathsubst.stamp */*/.*.pathsubst.stamp \ - linuxcaps.h pathconfig.h + linuxcaps.h pathconfig.h .fixups DISTCLEANFILES = FEATURES.txt @@ -111,6 +113,15 @@ endif VSERVER_LDADDS = lib/libvserver.la $(DIET_COMPAT_LDADDS) +silent.%: FORCE + @t=$$(mktemp /tmp/build.XXXXXX) && \ + $(MAKE) '$*' -s 2>$$t >/dev/null && \ + ( cat $$t | \ + grep -v ': In function' | \ + grep -v 'your code still has assertions enabled' | \ + grep -v ' is obsoleted' | \ + grep -v 'warning: #warning'; \ + rm -f $$t || : ) linuxcaps.h: ${kernelincludedir}/linux/capability.h Makefile @rm -f $@ @@ -223,6 +234,10 @@ _install-vshelperlink: _install-vserverdir: $(mkinstalldirs) $(DESTDIR)$(vserverdir) $(DESTDIR)$(vserverpkgdir) +.fixups: config.status util-vserver.spec + chmod a-w util-vserver.spec + touch $@ + if USE_DIETLIBC $(addsuffix $(EXEEXT), $(DIETPROGS)) \ $(addsuffix $(OBJEXT), $(DIETPROGS)) \ @@ -243,9 +258,13 @@ include $(top_srcdir)/sysv/Makefile-files include $(top_srcdir)/contrib/Makefile-files include $(top_srcdir)/ensc_vector/Makefile-files include $(top_srcdir)/ensc_wrappers/Makefile-files +include $(top_srcdir)/ensc_fmt/Makefile-files include $(top_srcdir)/lib_internal/Makefile-files +include $(top_srcdir)/vserver-start/Makefile-files include $(top_srcdir)/m4/gpgsig.am include $(top_srcdir)/m4/validate.am include $(top_srcdir)/m4/changelog.am include $(top_srcdir)/m4/pkgconfig.am + +.PHONY: FORCE