new script to create snapshots
[opensuse:susefirewall2.git] / Makefile
1 SCRIPTS=SuSEfirewall2-batch \
2         SuSEfirewall2-open \
3         SuSEfirewall2-showlog \
4         SuSEfirewall2-rpcinfo \
5         SuSEfirewall2-qdisc \
6         SuSEfirewall2-oldbroadcast \
7
8 DESTDIR=
9
10 allfiles= \
11         SuSEfirewall2_init \
12         SuSEfirewall2_setup \
13         $(SCRIPTS) \
14         SuSEfirewall2_ifup \
15         SuSEfirewall2-custom.sysconfig \
16         SuSEfirewall2 \
17         SuSEfirewall2.sysconfig \
18         SuSEfirewall2.service.TEMPLATE \
19         SuSEfirewall2.update-message \
20         SuSEfirewall2.update-message.broadcast \
21         Makefile \
22         LICENCE
23
24 all:
25
26 install:
27         install -d -m 755 $(DESTDIR)/sbin
28         install -d -m 755 $(DESTDIR)/etc/init.d
29         install -d -m 755 $(DESTDIR)/etc/sysconfig/scripts
30         install -d -m 755 $(DESTDIR)/etc/sysconfig/network/scripts
31         install -d -m 755 $(DESTDIR)/etc/sysconfig/network/if-up.d
32         install -d -m 755 $(DESTDIR)/etc/sysconfig/SuSEfirewall2.d/services
33         install -m 755 SuSEfirewall2 $(DESTDIR)/sbin
34         install -m 755 SuSEfirewall2_init $(DESTDIR)/etc/init.d
35         install -m 755 SuSEfirewall2_setup $(DESTDIR)/etc/init.d
36         rm -f $(DESTDIR)/sbin/rcSuSEfirewall2
37         ln -s /etc/init.d/SuSEfirewall2_setup $(DESTDIR)/sbin/rcSuSEfirewall2
38         for i in $(SCRIPTS); do \
39                 install -m 644 $$i $(DESTDIR)/etc/sysconfig/scripts; \
40         done
41         install -m 755 SuSEfirewall2_ifup $(DESTDIR)/etc/sysconfig/network/scripts/SuSEfirewall2
42         ln -sf /etc/sysconfig/network/scripts/SuSEfirewall2 $(DESTDIR)/etc/sysconfig/network/if-up.d
43         ln -sf SuSEfirewall2 $(DESTDIR)/etc/sysconfig/network/scripts/firewall
44         install -m 755 SuSEfirewall2-custom.sysconfig $(DESTDIR)/etc/sysconfig/scripts/SuSEfirewall2-custom
45         install -m 644 SuSEfirewall2.service.TEMPLATE $(DESTDIR)/etc/sysconfig/SuSEfirewall2.d/services/TEMPLATE
46
47 doc:
48         $(MAKE) -C doc
49
50 clean:
51         rm -f $(ARCHIVE)
52
53 .PHONY: clean doc dist