Add to git.
[dlife.git] / Makefile.am
1 # DLIFE (C) 2000 Richard W.M. Jones <rich@annexia.org>
2 # and other authors listed in the ``AUTHORS'' file.
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17 #
18 # $Id: Makefile.am,v 1.3 2002/04/05 17:20:11 rich Exp $
19
20 AUTOMAKE_OPTIONS = foreign
21
22 EXTRA_DIST      = .cvsignore \
23                   Build \
24                   Build.local \
25                   dlife_asm.pl \
26                   dlife_client.pl.in \
27                   dlife_disasm.pl \
28                   dlife_server.pl.in \
29                   dlife.spec \
30                   dlife.spec.in \
31                   god.dla \
32                   index.html.in \
33                   servers.txt \
34                   debian/changelog \
35                   debian/conffiles \
36                   debian/control \
37                   debian/copyright \
38                   debian/cron.d \
39                   debian/dirs \
40                   debian/docs \
41                   debian/files \
42                   debian/init.d \
43                   debian/postinst.debhelper \
44                   debian/postrm.debhelper \
45                   debian/prerm.debhelper \
46                   debian/rules \
47                   debian/substvars \
48                   $(bin_SCRIPTS) \
49                   $(conf_DATA) \
50                   $(cron_DATA) \
51                   $(doc_DATA) \
52                   $(rc_SCRIPTS) \
53                   $(spool_DATA)
54
55 docdir          = @DOCDIR@
56 doc_DATA        = AUTHORS \
57                   INSTALL \
58                   README \
59                   archproc.gif \
60                   archproc.fig \
61                   archref.html \
62                   index.html \
63                   machineref.html
64
65 spooldir        = @SPOOLDIR@
66 spool_DATA      = god.dlo
67
68 confdir         = @CONFDIR@
69 conf_DATA       = client.conf soup.conf
70
71 if INSTALL_CRON
72 crondir         = @CRONDIR@
73 else
74 crondir         = /tmp
75 endif
76 cron_DATA       = dlife_client.cron
77
78 if INSTALL_RC
79 rcdir           = @RCDIR@
80 else
81 rcdir           = /tmp
82 endif
83 rc_SCRIPTS      = dlife.rc
84
85 bin_PROGRAMS    = dlife_soup
86
87 bin_SCRIPTS     = dlife_client.pl dlife_server.pl
88
89 dlife_soup_SOURCES = \
90                 cell.c \
91                 cell.h \
92                 crc.c \
93                 crc.h \
94                 dlink.h \
95                 exec.c \
96                 image.c \
97                 image.h \
98                 load.c \
99                 load.h \
100                 main.c \
101                 params.h \
102                 random.c \
103                 random.h \
104                 soup.c \
105                 soup.h \
106                 state.c \
107                 state.h \
108                 types.h
109
110 install-data-hook:
111                 $(mkinstalldirs) $(DESTDIR)$(spooldir)/incoming
112                 $(mkinstalldirs) $(DESTDIR)$(spooldir)/outgoing
113                 $(mkinstalldirs) $(DESTDIR)$(spooldir)/saved
114                 $(mkinstalldirs) $(DESTDIR)$(spooldir)/store
115   ifndef NO_CHOWN
116                 chown -R dlife.dlife $(DESTDIR)$(spooldir)
117   endif