annotate Makefile @ 42:2467ff423c15 noffle

[svn] * AUTHORS.html, CHANGELOG.html, COPYING.html, README.html, FAQ.html, NOTES.html, INSTALL.html: Removed files. * AUTHORS, COPYING, ChangeLog, README, INSTALL, NEWS, docs/FAQ, docs/NOTES: Added files. * TODO.TXT: Renamed to TODO. Slightly changed formatting. * README: Reformatted the file. Added info about CVS. Added a pointer to the file INSTALL. * noffle.1, noffle.conf.5: Moved to docs/ * LSM.TXT: Moved to docs/noffle.lsm. Small fix. * INSTALL: Adapted to autoconf build-system. A few minor fixes.
author uh1763
date Fri, 05 May 2000 21:26:14 +0100
parents 8e972daaeab9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
1 ###############################################################################
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
2 #
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
3 # Makefile for Noffle news server
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
4 #
38
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
5 # $Id: Makefile 44 2000-05-05 07:23:15Z enz $
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
6 #
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
7 ###############################################################################
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
8
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
9 SPOOLDIR = /var/spool/noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
10 PREFIX = /usr/local
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
11
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
12 CONFIGFILE = /etc/noffle.conf
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
13 BINDIR = $(PREFIX)/bin
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
14 MANDIR = $(PREFIX)/man
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
15 DOCDIR = $(PREFIX)/doc/noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
16
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
17 CC = gcc
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
18 CFLAGS = -Wall -O -g
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
19 #CFLAGS = -Wall -g -DDEBUG
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
20
26
526a4c34ee2e [svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents: 14
diff changeset
21 VERSION = 1.0pre5develop
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
22
26
526a4c34ee2e [svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents: 14
diff changeset
23 FILESH = client.h common.h config.h content.h control.h database.h \
526a4c34ee2e [svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents: 14
diff changeset
24 dynamicstring.h fetch.h fetchlist.h group.h itemlist.h lock.h log.h \
526a4c34ee2e [svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents: 14
diff changeset
25 online.h outgoing.h over.h post.h protocol.h pseudo.h request.h \
38
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
26 server.h util.h wildmat.h
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
27
26
526a4c34ee2e [svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents: 14
diff changeset
28 FILESC = fetch.c client.c config.c content.c control.c database.c \
526a4c34ee2e [svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents: 14
diff changeset
29 dynamicstring.c fetchlist.c group.c itemlist.c lock.c log.c noffle.c \
526a4c34ee2e [svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents: 14
diff changeset
30 online.c outgoing.c over.c post.c protocol.c pseudo.c request.c \
38
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
31 server.c util.c wildmat.c
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
32
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
33 OBJS = $(patsubst %.c,%.o,$(FILESC))
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
34
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
35 all: noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
36
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
37 noffle: $(OBJS)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
38 $(CC) $(CFLAGS) -o noffle $(OBJS) -lgdbm
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
39
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
40 config.o: config.c config.h Makefile
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
41 $(CC) $(CFLAGS) -c -DSPOOLDIR=\"$(SPOOLDIR)\" \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
42 -DVERSION=\"$(VERSION)\" -DCONFIGFILE=\"$(CONFIGFILE)\" config.c
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
43
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
44 log.o: log.c log.h Makefile
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
45
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
46 depend:
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
47 gcc -MM -MG -E $(FILESC) >depend
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
48
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
49 clean:
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
50 rm -f depend $(OBJS) noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
51
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
52 install: noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
53 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(BINDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
54 install -m 4755 -o news -g news noffle $(RPM_BUILD_ROOT)$(BINDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
55 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(MANDIR)/man1
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
56 install -m 0644 -o 0 -g 0 noffle.1 \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
57 $(RPM_BUILD_ROOT)$(MANDIR)/man1/noffle.1
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
58 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(MANDIR)/man5
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
59 install -m 0644 -o 0 -g 0 noffle.conf.5 \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
60 $(RPM_BUILD_ROOT)$(MANDIR)/man5/noffle.conf.5
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
61 install -m 2755 -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
62 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/data
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
63 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/lock
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
64 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/requested
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
65 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/outgoing
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
66 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/overview
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
67 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(DOCDIR)
38
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
68 install -m 0644 -o 0 -g 0 README.html $(RPM_BUILD_ROOT)$(DOCDIR)
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
69 install -m 0644 -o 0 -g 0 NOTES.html $(RPM_BUILD_ROOT)$(DOCDIR)
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
70 install -m 0644 -o 0 -g 0 INSTALL.html $(RPM_BUILD_ROOT)$(DOCDIR)
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
71 install -m 0644 -o 0 -g 0 CHANGELOG.html $(RPM_BUILD_ROOT)$(DOCDIR)
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
72 install -m 0644 -o 0 -g 0 FAQ.html $(RPM_BUILD_ROOT)$(DOCDIR)
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
73 install -m 0644 -o 0 -g 0 COPYING.html $(RPM_BUILD_ROOT)$(DOCDIR)
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
74 install -m 0644 -o 0 -g 0 noffle.conf.example \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
75 $(RPM_BUILD_ROOT)$(DOCDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
76 chown -R news.news $(RPM_BUILD_ROOT)$(SPOOLDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
77 @echo
38
8e972daaeab9 [svn] Applied patch from Jim Hague:
enz
parents: 31
diff changeset
78 @echo Read INSTALL.html for further instructions.
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
79
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
80 tags:
31
cf838072290d [svn] Replaced usage of etags by ctags, because etags no longer works on my system.
enz
parents: 26
diff changeset
81 ctags -e $(FILESC) $(FILESH)
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
82
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
83 -include depend