summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-22 21:33:12 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-22 21:33:12 -0400
commitfdb45cd3d001008b7fcd7694eaa21328f26c74f6 (patch)
tree8d6a6792556779a6de2e53b7fc3c4557e69c2c07 /Makefile
parent959fdb0438d491f61ef01b5417eac4aaac09fe1f (diff)
refactor to be a stand-alone package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c3359dd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+prefix = /usr
+sbindir = $(prefix)/sbin
+rcdir = /etc/rc.d
+systemddir = $(prefix)/lib/systemd/system
+confdir = /etc/conf.d
+
+all: depends.txt
+
+install: \
+ $(DESTDIR)$(sbindir)/parabolaweb-download \
+ $(DESTDIR)$(sbindir)/parabolaweb-update \
+ $(DESTDIR)$(sbindir)/parabolaweb-fcgi \
+ $(DESTDIR)$(confdir)/parabolaweb \
+ $(DESTDIR)$(rcdir)/parabolaweb \
+ $(DESTDIR)$(systemddir)/parabolaweb.service
+
+depends.txt: list-depends depends_static.txt
+ bash $< > $@
+
+$(DESTDIR)$(sbindir)/%: %
+ install -Dm755 $< $@
+
+$(DESTDIR)$(rcdir)/%: %.rc
+ install -Dm755 $< $@
+
+$(DESTDIR)$(systemddir)/%.service: %.service
+ install -Dm644 $< $@
+
+$(DESTDIR)$(confdir)/%: %.conf
+ install -Dm644 $< $@