ipif: service-wrap: implementation, seems to work so far
[userv-utils] / ucgi / Makefile
1 # Copyright 1996-2013,2016 Ian Jackson <ijackson@chiark.greenend.org.uk>
2 # Copyright 1998 David Damerell <damerell@chiark.greenend.org.uk>
3 # Copyright 1999,2003
4 # Chancellor Masters and Scholars of the University of Cambridge
5 # Copyright 2010 Tony Finch <fanf@dotat.at>
6 # Copyright 2013,2016 Mark Wooding <mdw@distorted.org.uk>
7 #
8 # This is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with userv-utils; if not, see http://www.gnu.org/licenses/.
20
21
22 include ../settings.make
23
24 uslibdir= $(libdir)/userv/ucgi
25 uslibcgidir= $(uslibdir)/cgi
26 usdocdir= $(docdir)/userv-ucgi
27
28 TARGETS= ucgi ucgitarget
29
30 all: $(TARGETS)
31
32 OBJS= ucgi.o ucgitarget.o ucgicommon.o
33
34 ucgi: ucgi.o ucgicommon.o
35 ucgitarget: ucgitarget.o ucgicommon.o
36
37 $(OBJS): ucgi.h
38
39 install: all
40 mkdir -p $(uslibcgidir)
41 cp -b ucgitarget $(uslibdir)/target
42 cp -b ucgi $(uslibcgidir)/
43 ln -sf ucgi $(uslibcgidir)/ucgi-debug
44
45 install-examples:
46
47 install-docs:
48 mkdir -p $(usdocdir)/examples
49 cp INSTALL README.custom-env-filter $(usdocdir)/.
50 cp srm.conf.fragment $(usdocdir)/examples/.
51 sed -e 's#/usr/local#$(prefix)#' user-cgi.text \
52 >$(usdocdir)/userv-cgi.text
53
54 clean distclean realclean:
55 rm -f $(TARGETS) *.o