File: Makefile.in

package info (click to toggle)
apache-mod-auth-ntlm-winbind 0.0.0.lorikeet%2Bsvn%2B801-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 348 kB
  • sloc: sh: 2,774; ansic: 761; makefile: 67
file content (70 lines) | stat: -rw-r--r-- 1,951 bytes parent folder | download | duplicates (2)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# Makefile for mod_auth_ntlm_winbind
#

# Programs

APXS = @APXS@
APXS_FLAGS = @APXS_FLAGS@
SODIR = @SODIR@
APXSLIBDIR=$(DESTDIR)/$(shell $(APXS) -q LIBEXECDIR)

# Build the dso
MOD_NTLM_WINBIND_SRC = mod_auth_ntlm_winbind.c

$(SODIR)mod_auth_ntlm_winbind.so: $(MOD_NTLM_WINBIND_SRC)
	$(APXS) $(APXS_FLAGS) -Wc,-Wall -c $(MOD_NTLM_WINBIND_SRC)

install: $(SODIR)mod_auth_ntlm_winbind.so
	$(APXS) $(APXS_FLAGS) -S LIBEXECDIR=$(APXSLIBDIR) -n auth_ntlm_winbind -i $(SODIR)mod_auth_ntlm_winbind.so

tarball: distclean
	@case "$${RELEASE}" in \
		1|y|Y|yes|Yes) ;; \
		*) \
			TMPDIR=$$( mktemp -d __SVN_VERSION.XXXXXXXX); \
			if test $$? -ne 0; then \
				echo "Can't create temp dir to store svn version. "; \
				exit 1; \
			fi; \
			mv VERSION "$${TMPDIR}/"; \
			cp -p "$${TMPDIR}/VERSION" .; \
			echo "MOD_AUTH_NTLM_WINBIND_SVNVERSION=\"$$( svnversion)\"" \
				>>VERSION; \
			;; \
	esac; \
	. VERSION; \
	TARBALL_VERSION="$${MOD_AUTH_NTLM_WINBIND_VERSION}$${MOD_AUTH_NTLM_WINBIND_SVNVERSION:+.lorikeet_svn_$${MOD_AUTH_NTLM_WINBIND_SVNVERSION}}"; \
	TARBALL_BASENAME="mod_auth_ntlm_winbind-$${TARBALL_VERSION}"; \
	echo "Creating ../$${TARBALL_BASENAME}.tar.bz2 "; \
	pushd .. >/dev/null; \
	if ! test -e "$${TARBALL_BASENAME}"; then \
		TARBALL_SYMLINK_CREATED="yes"; \
		ln -s mod_auth_ntlm_winbind "$${TARBALL_BASENAME}"; \
	fi; \
	tar cfhj "$${TARBALL_BASENAME}.tar.bz2" \
		--exclude=__SVN_VERSION.???????? \
		--exclude=.*.swp \
		--exclude=.svn \
		"$${TARBALL_BASENAME}"; \
	test "$${TARBALL_SYMLINK_CREATED}" = "yes" && \
		rm "$${TARBALL_BASENAME}"; \
	popd >/dev/null; \
	if test -d "$$TMPDIR"; then \
		test -f "$${TMPDIR}/VERSION" && \
			mv "$${TMPDIR}/VERSION" .; \
		rmdir "$${TMPDIR}"; \
	fi

# Clean targets
clean:
	@rm -f *~ $(MOD_NTLM_WINBIND_SRC:.c=.{la,lo,o,slo})
	@rm -rf $(SODIR)

realclean: clean
	@rm -f config.log

distclean: realclean
	@rm -f config.h Makefile \
	config.status config.cache
	@rm -rf autom4te.cache