mirror of
https://github.com/fmang/opustags.git
synced 2025-01-15 20:53:16 +01:00
Makefile: install, doc
This commit is contained in:
parent
b5467d53a2
commit
0b33c94f47
17
Makefile
17
Makefile
@ -1,4 +1,5 @@
|
||||
CC=clang
|
||||
DESTDIR=/usr/local
|
||||
MANDEST=share/man
|
||||
CFLAGS=-Wall
|
||||
LDFLAGS=-logg
|
||||
|
||||
@ -6,5 +7,17 @@ all: opustags
|
||||
|
||||
opustags: opustags.c
|
||||
|
||||
man: opustags.1
|
||||
gzip <opustags.1 >opustags.1.gz
|
||||
|
||||
install: opustags man
|
||||
mkdir -p $(DESTDIR)/bin $(DESTDIR)/$(MANDEST)/man1
|
||||
install -m 755 opustags $(DESTDIR)/bin/
|
||||
install -m 644 opustags.1.gz $(DESTDIR)/$(MANDEST)/man1/
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)/bin/opustags
|
||||
rm -f $(DESTDIR)/$(MANDEST)/man1/opustags.1.gz
|
||||
|
||||
clean:
|
||||
rm -f opustags
|
||||
rm -f opustags opustags.1.gz
|
||||
|
Loading…
x
Reference in New Issue
Block a user