-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile.in
63 lines (47 loc) · 1.22 KB
/
Makefile.in
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
PACKAGE_NAME=@PACKAGE_NAME@
PACKAGE_VERSION=@PACKAGE_VERSION@
APXS=@APXS@
APACHECTL=@APACHECTL@
PERL=@PERL@
PROVE=@PROVE@
TESTS=t
builddir=.
installbuilddir=@AP_INSTALLBUILDDIR@
top_srcdir=@AP_TOP_SRCDIR@
top_builddir=@AP_TOP_BUILDDIR@
include @AP_INSTALLBUILDDIR@/special.mk
DEFS=@DEBUG_DEFS@ -DMOD_PSGI_VERSION=\"$(PACKAGE_VERSION)\"
EXTRA_CFLAGS+=@EXTRA_CFLAGS@
INCLUDES=@PERL_CCOPTS@
LDFLAGS=@PERL_LDOPTS@
all: local-shared-build
install: install-modules-yes
clean:
rm -f mod_psgi.o mod_psgi.lo mod_psgi.slo mod_psgi.la
maintainer-clean:
git clean -fdx
configure: configure.ac
autoconf
mod_psgi.c: ppport.h
ppport.h:
$(PERL) -MDevel::PPPort -e 'Devel::PPPort::WriteFile'
test: .libs/mod_psgi.so
$(PROVE) $(TESTS)
reload: install restart
start:
$(APACHECTL) start
restart:
$(APACHECTL) restart
stop:
$(APACHECTL) stop
DIST_DIR=$(PACKAGE_NAME)-$(PACKAGE_VERSION)
DIST_FILE=$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar
dist: ppport.h configure
rm -f $(DIST_FILE)
git archive --format=tar --prefix=$(DIST_DIR)/ HEAD > $(DIST_FILE)
mkdir $(DIST_DIR)
cp ppport.h configure $(DIST_DIR)
tar rf $(DIST_FILE) $(DIST_DIR)/ppport.h $(DIST_DIR)/configure
rm -fr $(DIST_DIR)
gzip --best $(DIST_FILE)
.PHONY: test maintainer-clean dist