summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJason D. McCormick <jason@mfamily.org>2022-09-24 11:43:15 -0400
committerJason D. McCormick <jason@mfamily.org>2022-09-24 11:43:15 -0400
commit8c9fc87bf43b770eddfa2548963663f1bd35c4f7 (patch)
tree4d95d9dab1e5017e126911ecaf228b32b97b6656 /Makefile
parent486ba23627fd7f8bd2a1c8a1f19d37729b787b72 (diff)
add
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 $< $@