File: Makefile.pre

package info (click to toggle)
ocamlnet 4.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 51,764 kB
  • ctags: 16,446
  • sloc: ml: 148,419; ansic: 10,989; sh: 1,885; makefile: 1,355
file content (40 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (3)
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
TOP_DIR=../..

include $(TOP_DIR)/Makefile.conf

PRE = 1
PKGNAME = netcgi2-apache
GENERATE = config.h netcgi_apache_mod.ml META 500netcgi_apache.info

INSTALL_EXTRA = netcgi_modtpl.cma 500netcgi_apache.info \
	        mod_netcgi_apache.so 

PP_OPTIONS = -pp "$(CPPO) $(PP_BYTES) $(PP_DEPRECATED)"

config.h: config.h.in
	sed -e 's,@APACHE_LIBDIR@,$(APACHE_LIBDIR),g' \
	-e 's,@PACKAGE@,$(PACKAGE),g' \
	-e 's,@VERSION@,$(VERSION),g' \
	-e 's,@APACHE_MAJOR@,$(APACHE_MAJOR),g' \
	< $< > $@

netcgi_apache_mod.ml: netcgi_apache_mod.ml.in
	sed -e 's,@APACHE_OCAMLLIBDIR@,$(APACHE_OCAMLLIBDIR),g' \
	-e 's,@PKGNAME@,$(PKGNAME),g' \
	-e 's,@VERSION@,$(VERSION),g' \
	-e 's,@APACHE_MAJOR@,$(APACHE_MAJOR),g' \
	-e 's,@APACHE_LIBDIR@,$(APACHE_LIBDIR),g' \
	< $< > $@

500netcgi_apache.info: 500netcgi_apache.info.in
	sed -e 's,@APACHE_LIBDIR@,$(APACHE_LIBDIR),g' < $< > $@


include $(TOP_DIR)/Makefile.rules


CLEAN_LIST += $(wildcard *.so) $(wildcard *.lo) $(wildcard *.slo) \
  $(wildcard *.la) config.h netcgi_apache_mod.ml 500netcgi_apache.info

distclean::
	$(RM) -rf .libs/ *.cds