diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-05-17 14:55:57 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-05-17 15:05:46 +0300 |
commit | 6b8fa542771cc9a93a9ecdfb20da9cea0781f1c4 (patch) | |
tree | e9998bd888fb29829e013a2de825a74b6e8db87d /Makefile.am | |
download | beam-6b8fa542771cc9a93a9ecdfb20da9cea0781f1c4.tar.gz beam-6b8fa542771cc9a93a9ecdfb20da9cea0781f1c4.tar.bz2 |
Initial import
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..7702ede --- /dev/null +++ b/Makefile.am @@ -0,0 +1,34 @@ +SUBDIRS=. lib examples doc +noinst_SCRIPTS=build.sed backup.sh restore.sh +CLEANFILES=backup.sh restore.sh +install-exec-hook: + for file in backup restore; \ + do \ + test -z "$(DESTDIR)$(bindir)" || \ + $(mkdir_p) "$(DESTDIR)$(bindir)"; \ + ${INSTALL} $(top_builddir)/$$file.sh \ + $(DESTDIR)$(bindir)/$$file; \ + done +install-data-hook: + test -z "$(DESTDIR)$(sysconfdir)" || \ + $(mkdir_p) "$(DESTDIR)$(sysconfdir)"; \ + if test -f $(DESTDIR)$(sysconfdir)/backup.conf; then :; else \ + ${INSTALL} -m 644 $(top_srcdir)/backup.conf $(DESTDIR)$(sysconfdir);\ + fi +uninstall-hook: + for file in backup restore; \ + do \ + rm -f "$(DESTDIR)$(bindir)/$$file"; \ + done +backup.sh restore.sh: build.sed +EXTRA_DIST=backup.in restore.in backup.conf +distuninstallcheck_listfiles=find $(DESTDIR)$(prefix) -type f -not -wholename '$(DESTDIR)$(sysconfdir)/backup.conf' + +$(top_builddir)/build.sed: Makefile + $(AM_V_GEN){ \ + echo 's|@''SYSCONFDIR''@|${sysconfdir}|g';\ + echo 's|@''LIBDIR''@|${libdir}|g'; \ + echo 's|@''BINDIR''@|${bindir}|g'; \ + } > $(top_builddir)/build.sed +DISTCLEANFILES=build.sed backup.sh restore.sh +include $(top_srcdir)/Make.rules |