Rename www-cgi to ucgi (in nearly all places)
[userv-utils] / ucgi / Makefile
CommitLineData
ca2efed5 1# Copyright 1996-2013,2016 Ian Jackson <ijackson@chiark.greenend.org.uk>
9028e234
IJ
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>
93733bee 6# Copyright 2013,2016 Mark Wooding <mdw@distorted.org.uk>
49973d9a 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
9028e234 10# the Free Software Foundation; either version 3 of the License, or
49973d9a 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
9028e234 19# along with userv-utils; if not, see http://www.gnu.org/licenses/.
49973d9a 20
6362f12c 21
22include ../settings.make
23
5e217877 24uslibdir= $(libdir)/userv/ucgi
6362f12c 25uslibcgidir= $(uslibdir)/cgi
5e217877 26usdocdir= $(docdir)/userv-ucgi
6a580c17 27
a33962ba 28TARGETS= ucgi ucgitarget
6a580c17 29
30all: $(TARGETS)
31
a33962ba 32OBJS= ucgi.o ucgitarget.o ucgicommon.o
6a580c17 33
a33962ba 34ucgi: ucgi.o ucgicommon.o
6a580c17 35ucgitarget: ucgitarget.o ucgicommon.o
36
a33962ba 37$(OBJS): ucgi.h
c62ccbd5 38
6362f12c 39install: all
40 mkdir -p $(uslibcgidir)
41 cp -b ucgitarget $(uslibdir)/target
42 cp -b ucgi $(uslibcgidir)/
43 ln -sf ucgi $(uslibcgidir)/ucgi-debug
44
45install-examples:
46
47install-docs:
a10e69ac 48 mkdir -p $(usdocdir)/examples
3285b081 49 cp INSTALL README.custom-env-filter $(usdocdir)/.
a10e69ac
IJ
50 cp srm.conf.fragment $(usdocdir)/examples/.
51 sed -e 's#/usr/local#$(prefix)#' user-cgi.text \
52 >$(usdocdir)/userv-cgi.text
6362f12c 53
c62ccbd5 54clean distclean realclean:
477d9486 55 rm -f $(TARGETS) *.o