summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2c4fe7e878ece7a63ea8cb3ebdc8aa13baa4f162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CFLAGS		:=-O2 -Wall -g
CPPFLAGS	:=$(shell pkg-config --cflags gio-2.0)
LDLIBS		:=$(shell pkg-config --libs gio-2.0)
INSTALL		:=install

prefix		:=/usr/local
sbindir		:=$(prefix)/sbin
systemdsystemunitdir :=/etc/systemd/system

all:		event-httpd event-httpd.service

install:	install-bin install-systemd

install-bin:
		$(INSTALL) -s -m 755 event-httpd $(sbindir)

install-systemd:
		$(INSTALL) -m 644 event-httpd.service $(systemdsystemunitdir)

event-httpd:	event-httpd.o resource.o

event-httpd.service: event-httpd.service.in
		sed "s|@sbindir@|$(sbindir)|" $< > $@