Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (47 sloc) 1.25 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
378acc6 @spiritloose Added --with-prove
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
3cd211b @spiritloose Added --enable-debug
authored
17 DEFS=@DEBUG_DEFS@ -DMOD_PSGI_VERSION=\"$(PACKAGE_VERSION)\"
18 EXTRA_CFLAGS+=@EXTRA_CFLAGS@
f3f6041 @spiritloose Get apxs and perl's config vars in configure
authored
19 INCLUDES=@PERL_CCOPTS@
20 LDFLAGS=@PERL_LDOPTS@
f61f188 @spiritloose Initial commit
authored
21
22 all: local-shared-build
23
24 install: install-modules-yes
25
26 clean:
b8e8623 @spiritloose Refactored tests
authored
27 rm -f mod_psgi.o mod_psgi.lo mod_psgi.slo mod_psgi.la
f61f188 @spiritloose Initial commit
authored
28
4097f28 @spiritloose Refactored Makefile
authored
29 maintainer-clean:
30 git clean -fdx
a321c86 @spiritloose use autoconf
authored
31
32 configure: configure.ac
33 autoconf
34
f61f188 @spiritloose Initial commit
authored
35 mod_psgi.c: ppport.h
36
37 ppport.h:
eb8adc4 @spiritloose Use $(PERL) to make ppport.h instead of 'perl'
authored
38 $(PERL) -MDevel::PPPort -e 'Devel::PPPort::WriteFile'
f61f188 @spiritloose Initial commit
authored
39
c5d70ca @spiritloose Now we can test before 'make install'
authored
40 test: .libs/mod_psgi.so
2d43b09 @spiritloose Make 'prove' path as variable
authored
41 $(PROVE) $(TESTS)
f61f188 @spiritloose Initial commit
authored
42
43 reload: install restart
44
45 start:
46 $(APACHECTL) start
47 restart:
48 $(APACHECTL) restart
49 stop:
50 $(APACHECTL) stop
51
52 DIST_DIR=$(PACKAGE_NAME)-$(PACKAGE_VERSION)
53 DIST_FILE=$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar
a321c86 @spiritloose use autoconf
authored
54 dist: ppport.h configure
f61f188 @spiritloose Initial commit
authored
55 rm -f $(DIST_FILE)
56 git archive --format=tar --prefix=$(DIST_DIR)/ HEAD > $(DIST_FILE)
57 mkdir $(DIST_DIR)
a321c86 @spiritloose use autoconf
authored
58 cp ppport.h configure $(DIST_DIR)
59 tar rf $(DIST_FILE) $(DIST_DIR)/ppport.h $(DIST_DIR)/configure
f61f188 @spiritloose Initial commit
authored
60 rm -fr $(DIST_DIR)
61 gzip --best $(DIST_FILE)
62
4097f28 @spiritloose Refactored Makefile
authored
63 .PHONY: test maintainer-clean dist
Something went wrong with that request. Please try again.