Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 68 lines (51 sloc) 1.283 kB
a321c86 @spiritloose use autoconf
authored
1 PACKAGE_NAME=@PACKAGE_NAME@
2 PACKAGE_VERSION=@PACKAGE_VERSION@
f61f188 @spiritloose Initial commit
authored
3
a321c86 @spiritloose use autoconf
authored
4 APXS=@APXS@
5 APACHECTL=@APACHECTL@
6 PERL=@PERL@
f61f188 @spiritloose Initial commit
authored
7
2d43b09 @spiritloose Make 'prove' path as variable
authored
8 PROVE=prove
4097f28 @spiritloose Refactored Makefile
authored
9 TESTS=t
10
f61f188 @spiritloose Initial commit
authored
11 builddir=.
f3f6041 @spiritloose Get apxs and perl's config vars in configure
authored
12 installbuilddir=@AP_INSTALLBUILDDIR@
13 top_srcdir=@AP_TOP_SRCDIR@
14 top_builddir=@AP_TOP_BUILDDIR@
15 include @AP_INSTALLBUILDDIR@/special.mk
f61f188 @spiritloose Initial commit
authored
16
17 ifdef MOD_PSGI_DEBUG
18 DEBUG_DEFS=-DDEBUG
19 else
20 DEBUG_DEFS=
21 endif
22 DEFS=-DMOD_PSGI_VERSION=\"$(PACKAGE_VERSION)\" $(DEBUG_DEFS)
f3f6041 @spiritloose Get apxs and perl's config vars in configure
authored
23 INCLUDES=@PERL_CCOPTS@
24 LDFLAGS=@PERL_LDOPTS@
f61f188 @spiritloose Initial commit
authored
25
26 all: local-shared-build
27
28 install: install-modules-yes
29
30 clean:
b8e8623 @spiritloose Refactored tests
authored
31 rm -f mod_psgi.o mod_psgi.lo mod_psgi.slo mod_psgi.la
f61f188 @spiritloose Initial commit
authored
32
4097f28 @spiritloose Refactored Makefile
authored
33 maintainer-clean:
34 git clean -fdx
a321c86 @spiritloose use autoconf
authored
35
36 configure: configure.ac
37 autoconf
38
f61f188 @spiritloose Initial commit
authored
39 mod_psgi.c: ppport.h
40
41 ppport.h:
eb8adc4 @spiritloose Use $(PERL) to make ppport.h instead of 'perl'
authored
42 $(PERL) -MDevel::PPPort -e 'Devel::PPPort::WriteFile'
f61f188 @spiritloose Initial commit
authored
43
c5d70ca @spiritloose Now we can test before 'make install'
authored
44 test: .libs/mod_psgi.so
2d43b09 @spiritloose Make 'prove' path as variable
authored
45 $(PROVE) $(TESTS)
f61f188 @spiritloose Initial commit
authored
46
47 reload: install restart
48
49 start:
50 $(APACHECTL) start
51 restart:
52 $(APACHECTL) restart
53 stop:
54 $(APACHECTL) stop
55
56 DIST_DIR=$(PACKAGE_NAME)-$(PACKAGE_VERSION)
57 DIST_FILE=$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar
a321c86 @spiritloose use autoconf
authored
58 dist: ppport.h configure
f61f188 @spiritloose Initial commit
authored
59 rm -f $(DIST_FILE)
60 git archive --format=tar --prefix=$(DIST_DIR)/ HEAD > $(DIST_FILE)
61 mkdir $(DIST_DIR)
a321c86 @spiritloose use autoconf
authored
62 cp ppport.h configure $(DIST_DIR)
63 tar rf $(DIST_FILE) $(DIST_DIR)/ppport.h $(DIST_DIR)/configure
f61f188 @spiritloose Initial commit
authored
64 rm -fr $(DIST_DIR)
65 gzip --best $(DIST_FILE)
66
4097f28 @spiritloose Refactored Makefile
authored
67 .PHONY: test maintainer-clean dist
Something went wrong with that request. Please try again.