1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
exampledir = $(docdir)/examples
dist_example_DATA = builtins popper rpc simple
nodist_example_DATA = rlinetd.conf
CLEANFILES = rlinetd.conf
EXTRA_DIST = rlinetd.conf.in
TRANSFORM = $(SED) -e 's|%version%|$(VERSION)|g' \
-e 's|%package%|$(PACKAGE)|g' \
-e 's|%use_nls%|$(USE_NLS)|g' \
-e 's|%perlpath%|$(perlpath)|g' \
-e 's|%sysconfdir%|$(sysconfdir)|g'
rlinetd.conf: rlinetd.conf.in
$(AM_V_GEN) sed -e 's|%sysconfdir%|$(sysconfdir)|g' < $< > $@
install-data-hook:
test -e $(DESTDIR)$(sysconfdir)/rlinetd.conf || { \
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/rlinetd.d && \
$(INSTALL_DATA) rlinetd.conf $(DESTDIR)$(sysconfdir); }
|