aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: f3569b8f8a0064c1ed23ccc919764a9b516c8cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
SUBDIRS=. lib examples doc
if COND_S3MOUNT
 S3MOUNT=s3mount
 S3MOUNT_SH=s3mount.sh
endif
noinst_SCRIPTS=build.sed backup.sh restore.sh $(S3MOUNT_SH)
bin_SCRIPTS=backup-cleaner
CLEANFILES=backup.sh restore.sh $(S3MOUNT_SH)
install-exec-hook:
	for file in backup restore $(S3MOUNT); \
	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 $(S3MOUNT); \
	do \
		rm -f "$(DESTDIR)$(bindir)/$$file";	\
	done
backup.sh restore.sh $(S3MOUNT_SH): build.sed
EXTRA_DIST=backup.in restore.in backup.conf backup-cleaner s3mount.in
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';	\
	  echo 's|@''PACKAGE_BUGREPORT''@|$(PACKAGE_BUGREPORT)|g'; \
	  echo 's|@''PACKAGE_NAME''@|$(PACKAGE_NAME)|g';\
	  echo 's|@''PACKAGE_STRING''@|$(PACKAGE_STRING)|g';\
	  echo 's|@''PACKAGE_TARNAME''@|$(PACKAGE_STRING)|g';\
	  echo 's|@''PACKAGE_URL''@|$(PACKAGE_URL)|g';\
	  echo 's|@''PACKAGE_VERSION''@|$(PACKAGE_VERSION)|g';\
	} > $(top_builddir)/build.sed
DISTCLEANFILES=build.sed backup.sh restore.sh
include $(top_srcdir)/Make.rules

.PHONY: ChangeLog
ChangeLog:
	$(AM_V_GEN)if test -d .git; then                                     \
          git log --pretty='format:%ct  %an  <%ae>%n%n%s%n%n%b%n' |          \
            awk -f $(top_srcdir)/git2chg.awk > ChangeLog.tmp;                \
          cmp ChangeLog ChangeLog.tmp > /dev/null 2>&1 ||                    \
            mv ChangeLog.tmp ChangeLog;                                      \
          rm -f ChangeLog.tmp;                                               \
	fi

Return to:

Send suggestions and report system problems to the System administrator.