From fdb45cd3d001008b7fcd7694eaa21328f26c74f6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 22 Apr 2013 21:33:12 -0400 Subject: refactor to be a stand-alone package --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 $< $@ -- cgit v1.2.3-54-g00ecf