summaryrefslogtreecommitdiff
path: root/Makefile
blob: 78b2d3b65a00a91e4f00385b5659d8d285abe04b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
INSTALLABLES = \
	$(DESTDIR)/usr/local/sbin/firehol2nft \
	$(DESTDIR)/usr/local/sbin/firehol2nft-load \
	$(DESTDIR)/etc/cron.d/firehol2nft

install:	dirs $(INSTALLABLES)

dirs:
	mkdir -p -m 0755 $(DESTDIR)/usr/local/sbin
	mkdir -p -m 0755 $(DESTDIR)/etc/cron.d

clean:
	rm -rf ./tmasd

$(DESTDIR)/usr/local/sbin/%:	%
	install -m 0755 -o 0 -g 0 $< $@

$(DESTDIR)/etc/cron.d/firehol2nft:	firehol2nft.cron
	install -m 0640 -o 0 -g 0 $< $@