3 # Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 ACLOCAL_AMFLAGS = -I m4
23 CVS2CL_AMFLAGS = $(CVS2CL_TAG) -U cvsusers.map
24 CVS2CL_ALLFLAGS := $(CVS2CL_AMFLAGS) $(CVS2CL_FLAGS)
26 sysvdir = $(sysconfdir)/init.d
27 confdir = $(sysconfdir)/vservers
29 include_HEADERS = $(lib_HDRS)
30 noinst_HEADERS = $(src_HDRS)
32 lib_LIBRARIES = $(lib_lib_LIBS)
34 pkglib_SCRIPTS = $(scripts_SCRPTS)
35 pkglib_DATA = $(scriptscfg_DATA) $(scripts_DTA)
36 pkglib_PROGRAMS = $(src_pkglib_PRGS)
38 sbin_SCRIPTS = $(scripts_PRGS)
39 sbin_PROGRAMS = $(src_sbin_PRGS)
40 noinst_PROGRAMS = $(test_PRGS)
42 sysv_SCRIPTS = $(sysv_SCRPTS)
43 sysconf_DATA = $(sysv_CFG)
45 BUILT_SOURCES = linuxcaps.h pathconfig.h
47 man_MANS = $(man_DATMAN)
49 EXTRA_DIST = $(sysv_XTRAS) $(sysv_CFG) \
50 $(doc_DAT) $(man_DATMAN) \
51 $(scripts_SCRPTS) $(scripts_PRGS) $(scripts_XTRAS) \
52 pathconfig.h.pathsubst \
57 AM_CPPFLAGS = -I $(top_srcdir)/lib -D _GNU_SOURCE
58 AM_CFLAGS = -Wall -pedantic
60 CLEANFILES = $(sysv_GENSCRPTS) $(scripts_GENSCRPTS) \
61 .*.pathsubst.stamp */.*.pathsubst.stamp \
62 linuxcaps.h pathconfig.h
67 DIET_CC := $(DIET) $(DIET_FLAGS) $(CC)
71 ln -sf ${kernelincludedir}/linux/capability.h linuxcaps.h
73 pathconfig.h: .pathconfig.h.pathsubst.stamp
74 .%.pathsubst.stamp: %.pathsubst Makefile
75 @mkdir -p $$(dirname '$@')
76 @echo "sed -e '...' $*.pathsubst >$*"
77 @sed -e 's!@'PKGLIBDIR'@!$(pkglibdir)!g; \
78 s!@'SBINDIR'@!$(sbindir)!g; \
79 s!@'CONFDIR'@!$(confdir)!g; \
80 s!@'SYSCONFDIR'@!$(sysconfdir)!g; \
81 s!@'PACKAGE'@!$(PACKAGE)!g; \
82 s!@'PACKAGE_BUGREPORT'@!$(PACKAGE_BUGREPORT)!g; \
83 s!@'PACKAGE_NAME'@!$(PACKAGE_NAME)!g; \
84 s!@'PACKAGE_STRING'@!$(PACKAGE_STRING)!g; \
85 s!@'PACKAGE_TARNAME'@!$(PACKAGE_TARNAME)!g; \
86 s!@'PACKAGE_VERSION'@!$(PACKAGE_VERSION)!g; \
88 @if cmp -s '$@.tmp' '$*'; then \
89 echo "... no changes, reusing old version"; \
92 rm -f '$*'; mv '$@.tmp' '$*'; \
98 include $(top_srcdir)/lib/Makefile-files
99 include $(top_srcdir)/src/Makefile-files
100 include $(top_srcdir)/doc/Makefile-files
101 include $(top_srcdir)/man/Makefile-files
102 include $(top_srcdir)/scripts/Makefile-files
103 include $(top_srcdir)/tests/Makefile-files
104 include $(top_srcdir)/sysv/Makefile-files
106 include $(top_srcdir)/m4/gpgsig.am
107 include $(top_srcdir)/m4/validate.am
108 include $(top_srcdir)/m4/changelog.am