summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/include/rcscripts/Makefile.am')
-rw-r--r--src/core/include/rcscripts/Makefile.am26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/core/include/rcscripts/Makefile.am b/src/core/include/rcscripts/Makefile.am
new file mode 100644
index 0000000..651b389
--- /dev/null
+++ b/src/core/include/rcscripts/Makefile.am
@@ -0,0 +1,26 @@
+SUBDIRS = \
+ util \
+ core
+
+rcdir = $(pkgincludedir)
+rc_HEADERS = \
+ rctypes.h \
+ rcutil.h \
+ rccore.h
+nodist_rc_HEADERS = rcdefines.h
+
+rcdefines.h: $(srcdir)/rcdefines.h.in
+ @rm -f rcdefines.h
+ @echo "Generating rcdefines.h..."
+ @sed -e 's:@ETCDIR@:$(sysconfdir):g' \
+ -e 's:@BINDIR@:$(bindir):g' \
+ -e 's:@LIBDIR@:$(libdir):g' \
+ -e 's:@SBINDIR@:$(sbindir):g' \
+ -e 's:@VARDIR@:$(localstatedir):g' \
+ -e 's:@SHELL_PARSER@:$(RC_SHELL):g' \
+ $(srcdir)/rcdefines.h.in > rcdefines.h
+
+EXTRA_DIST = rcdefines.h.in
+
+CLEANFILES = rcdefines.h
+DISTCLEANFILES = $(CLEANFILES)