diff options
author | Tim Keller <tjkeller.xyz> | 2025-02-09 15:51:28 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-02-09 15:51:28 -0600 |
commit | 25ecc7f4c0b4a24ac9db349bb17fd2260a273b64 (patch) | |
tree | d3eb3c6ff791cf4de37672ef3f95a067693ddf85 /Makefile | |
parent | 9f5870e4ee74213b3dbc2814d892f3e8ad6d477e (diff) | |
download | pavolctld-1.0.1.tar.xz pavolctld-1.0.1.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -1,15 +1,27 @@ CC = gcc -CFLAGS = -Wall -Ofast +CFLAGS = -Wall -O2 LDFLAGS = -lpulse - TARGET = pavolctld -SOURCES = pavolctld.c +SRCS = pavolctld.c +PREFIX = /usr/local all: $(TARGET) -$(TARGET): $(SOURCES) - $(CC) $(CFLAGS) -o $(TARGET) $(SOURCES) $(LDFLAGS) +$(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 |