aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 918f075df388217915da02a8b367ce444e0dbf4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CC = gcc
CFLAGS = -Wall -O2
LDFLAGS = -lpulse
TARGET = pavolctld
SRCS = pavolctld.c
PREFIX = /usr/local

all: $(TARGET)

$(TARGET): $(SRCS)
	$(CC) $(CFLAGS) -o $@ $(SRCS) $(LDFLAGS)

clean:
	rm -f $(TARGET)

install: all
	mkdir -p     $(PREFIX)/bin
	cp pavolctld $(PREFIX)/bin/pavolctld
	chmod 755    $(PREFIX)/bin/pavolctld
	mkdir -p       $(PREFIX)/share/man/man1
	cp pavolctld.1 $(PREFIX)/share/man/man1/pavolctld.1
	chmod 644      $(PREFIX)/share/man/man1/pavolctld.1

uninstall:
	rm -f $(PREFIX)/bin/pavolctld $(PREFIX)/share/man/man1/pavolctld.1

.PHONY: all clean