-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
60 lines (42 loc) · 1.46 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
#
# ircddbd daemon
#
# Copyright (C) 2011 Michael Dirska, DL1BFF ([email protected])
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
all: ircddbd
pidfile.o: libutil.h
flopen.o: libutil.h
ircddbd.o: libutil.h ircddbd_version.h
ircddbd: ircddbd.o pidfile.o flopen.o
ircddbd_version.h:
touch ircddbd_version.h
clean:
rm -f *.o
distclean: clean
rm -f ircddbd ircddbd_version.h
rpm:
rpmbuild -ba ircddbd.spec
install: ircddbd
install ircddbd $(DESTDIR)/usr/sbin/ircddbd
install -d $(DESTDIR)/var/run/ircddbd
install -d $(DESTDIR)/var/cache/ircddbd
install -d $(DESTDIR)/var/lib/ircddbd
install -d $(DESTDIR)/var/log/ircddbd
install ircDDB.keystore $(DESTDIR)/etc/ircddbd/ircDDB.keystore
install ircDDB.policy $(DESTDIR)/etc/ircddbd/ircDDB.policy
install ircDDB.properties $(DESTDIR)/etc/ircddbd/ircDDB.properties
install logrotate.ircddbd $(DESTDIR)/etc/logrotate.d/ircddbd