Mercurial > noffle
annotate Makefile @ 26:526a4c34ee2e noffle
[svn] Applied patch from Jim Hague: support for local groups / new command
line options --create and --cancel.
author | enz |
---|---|
date | Sat, 29 Apr 2000 15:45:56 +0100 |
parents | 97ef217c3d89 |
children | cf838072290d |
rev | line source |
---|---|
0 | 1 ############################################################################### |
2 # | |
3 # Makefile for Noffle news server | |
4 # | |
26
526a4c34ee2e
[svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents:
14
diff
changeset
|
5 # $Id: Makefile 32 2000-04-29 14:45:56Z enz $ |
0 | 6 # |
7 ############################################################################### | |
8 | |
9 SPOOLDIR = /var/spool/noffle | |
10 PREFIX = /usr/local | |
11 | |
12 CONFIGFILE = /etc/noffle.conf | |
13 BINDIR = $(PREFIX)/bin | |
14 MANDIR = $(PREFIX)/man | |
15 DOCDIR = $(PREFIX)/doc/noffle | |
16 | |
17 CC = gcc | |
18 CFLAGS = -Wall -O -g | |
19 #CFLAGS = -Wall -g -DDEBUG | |
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 | 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 \ |
526a4c34ee2e
[svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents:
14
diff
changeset
|
26 server.h util.h |
0 | 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 \ |
526a4c34ee2e
[svn] Applied patch from Jim Hague: support for local groups / new command
enz
parents:
14
diff
changeset
|
31 server.c util.c |
0 | 32 |
33 OBJS = $(patsubst %.c,%.o,$(FILESC)) | |
34 | |
35 all: noffle | |
36 | |
37 noffle: $(OBJS) | |
38 $(CC) $(CFLAGS) -o noffle $(OBJS) -lgdbm | |
39 | |
40 config.o: config.c config.h Makefile | |
41 $(CC) $(CFLAGS) -c -DSPOOLDIR=\"$(SPOOLDIR)\" \ | |
42 -DVERSION=\"$(VERSION)\" -DCONFIGFILE=\"$(CONFIGFILE)\" config.c | |
43 | |
44 log.o: log.c log.h Makefile | |
45 | |
46 depend: | |
47 gcc -MM -MG -E $(FILESC) >depend | |
48 | |
49 clean: | |
50 rm -f depend $(OBJS) noffle | |
51 | |
52 install: noffle | |
53 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(BINDIR) | |
54 install -m 4755 -o news -g news noffle $(RPM_BUILD_ROOT)$(BINDIR) | |
55 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(MANDIR)/man1 | |
56 install -m 0644 -o 0 -g 0 noffle.1 \ | |
57 $(RPM_BUILD_ROOT)$(MANDIR)/man1/noffle.1 | |
58 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(MANDIR)/man5 | |
59 install -m 0644 -o 0 -g 0 noffle.conf.5 \ | |
60 $(RPM_BUILD_ROOT)$(MANDIR)/man5/noffle.conf.5 | |
61 install -m 2755 -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR) | |
62 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/data | |
63 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/lock | |
64 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/requested | |
65 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/outgoing | |
66 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/overview | |
67 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(DOCDIR) | |
68 install -m 0644 -o 0 -g 0 README.txt $(RPM_BUILD_ROOT)$(DOCDIR) | |
69 install -m 0644 -o 0 -g 0 NOTES.txt $(RPM_BUILD_ROOT)$(DOCDIR) | |
70 install -m 0644 -o 0 -g 0 INSTALL.txt $(RPM_BUILD_ROOT)$(DOCDIR) | |
71 install -m 0644 -o 0 -g 0 CHANGELOG.txt $(RPM_BUILD_ROOT)$(DOCDIR) | |
72 install -m 0644 -o 0 -g 0 FAQ.txt $(RPM_BUILD_ROOT)$(DOCDIR) | |
73 install -m 0644 -o 0 -g 0 COPYING.txt $(RPM_BUILD_ROOT)$(DOCDIR) | |
74 install -m 0644 -o 0 -g 0 noffle.conf.example \ | |
75 $(RPM_BUILD_ROOT)$(DOCDIR) | |
76 chown -R news.news $(RPM_BUILD_ROOT)$(SPOOLDIR) | |
77 @echo | |
78 @echo Read INSTALL.txt for further instructions. | |
79 | |
80 tags: | |
81 etags $(FILESC) $(FILESH) | |
82 | |
83 -include depend |