summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..78b2d3b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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 $< $@