Commit | Line | Data |
---|---|---|
9028e234 IJ |
1 | # Copyright 1996-2013 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> | |
49973d9a | 6 | # |
7 | # This is free software; you can redistribute it and/or modify it | |
8 | # under the terms of the GNU General Public License as published by | |
9028e234 | 9 | # the Free Software Foundation; either version 3 of the License, or |
49973d9a | 10 | # (at your option) any later version. |
11 | # | |
12 | # This program is distributed in the hope that it will be useful, but | |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | # General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
9028e234 | 18 | # along with userv-utils; if not, see http://www.gnu.org/licenses/. |
49973d9a | 19 | |
6362f12c | 20 | |
21 | include ../settings.make | |
22 | ||
23 | uslibdir= $(libdir)/userv/cgi | |
24 | uslibcgidir= $(uslibdir)/cgi | |
a10e69ac | 25 | usdocdir= $(docdir)/userv-cgi |
6a580c17 | 26 | |
a33962ba | 27 | TARGETS= ucgi ucgitarget |
6a580c17 | 28 | |
29 | all: $(TARGETS) | |
30 | ||
a33962ba | 31 | OBJS= ucgi.o ucgitarget.o ucgicommon.o |
6a580c17 | 32 | |
a33962ba | 33 | ucgi: ucgi.o ucgicommon.o |
6a580c17 | 34 | ucgitarget: ucgitarget.o ucgicommon.o |
35 | ||
a33962ba | 36 | $(OBJS): ucgi.h |
c62ccbd5 | 37 | |
6362f12c | 38 | install: all |
39 | mkdir -p $(uslibcgidir) | |
40 | cp -b ucgitarget $(uslibdir)/target | |
41 | cp -b ucgi $(uslibcgidir)/ | |
42 | ln -sf ucgi $(uslibcgidir)/ucgi-debug | |
43 | ||
44 | install-examples: | |
45 | ||
46 | install-docs: | |
a10e69ac IJ |
47 | mkdir -p $(usdocdir)/examples |
48 | cp INSTALL $(usdocdir)/. | |
49 | cp srm.conf.fragment $(usdocdir)/examples/. | |
50 | sed -e 's#/usr/local#$(prefix)#' user-cgi.text \ | |
51 | >$(usdocdir)/userv-cgi.text | |
6362f12c | 52 | |
c62ccbd5 | 53 | clean distclean realclean: |
477d9486 | 54 | rm -f $(TARGETS) *.o |