aboutsummaryrefslogtreecommitdiff
blob: e326b23d76323cfec16ac9c2a271ada8c8ffe5dd (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
ACLOCAL_AMFLAGS  = -I m4
MAKEFLAGS = --no-print-directory

SUBDIRS = \
	scripts    \
	etc        \
	data       \
	libsbutil  \
	libsandbox \
	src        \
	tests

libsandbox: libsbutil
src: libsbutil
tests: src

EXTRA_DIST = headers.h localdecls.h ChangeLog.0

ChangeLog:
	touch ChangeLog

dist-hook:
	set -e ; \
	if [ -d "$(top_srcdir)/.git" ] ; then \
		git --git-dir="$(top_srcdir)/.git" log > $(distdir)/ChangeLog ; \
	elif [ ! -e "$(distdir)/ChangeLog" ] ; then \
		if [ -e "$(top_srcdir)/ChangeLog" ] ; then \
			cp "$(top_srcdir)/ChangeLog" "$(distdir)/ChangeLog" ; \
		else \
			touch "$(distdir)/ChangeLog" ; \
		fi ; \
	fi

install-exec-hook:
	set -e ; \
	for f in $(bindir)/sandbox $(libdir)/libsandbox.so ; do \
		sed -i.tmp \
			's:__SANDBOX_TESTING:\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00:' \
			$(DESTDIR)$$f ; \
		rm -f $(DESTDIR)$$f.tmp ; \
	done