diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,4 +1,5 @@ TARGET=quart +PREFIX?=/usr/local SRC=*.c CC=gcc CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic -lm @@ -29,8 +30,14 @@ clean: rm -f $(TARGET) install: $(TARGET) - @cp -v $(TARGET) /usr/local/bin/$(TARGET) - @cp -v qc /usr/local/bin/qc + @cp -v $(TARGET) $(PREFIX)/bin/$(TARGET) + @cp -v qc $(PREFIX)/bin/qc + @install -m644 quart.1 $(PREFIX)/share/man1/quart.1 + @install -m644 quart.5 $(PREFIX)/share/man5/quart.5 + @ln -s $(PREFIX)/share/man5/quart.1 $(PREFIX)/share/man5/qc.1 uninstall: - @rm -v /usr/local/bin/$(TARGET) + @rm -v $(PREFIX)/bin/$(TARGET) + @rm -v $(PREFIX)/share/man1/quart.1 + @rm -v $(PREFIX)/share/man5/quart.5 + @rm -v $(PREFIX)/share/man5/qc.1 |