mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Merge pull request #5 from brunobraga/master
Adding man page to makefile
This commit is contained in:
commit
63adc4229b
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -1,6 +1,7 @@
|
||||||
CFLAGS?=-Wall -Os
|
CFLAGS?=-Wall -Os
|
||||||
PREFIX?=$(DESTDIR)/usr
|
PREFIX?=$(DESTDIR)/usr
|
||||||
BINDIR?=$(PREFIX)/bin
|
BINDIR?=$(PREFIX)/bin
|
||||||
|
MANDIR?=$(PREFIX)/share/man/man1
|
||||||
|
|
||||||
# Check deps.
|
# Check deps.
|
||||||
|
|
||||||
|
@ -23,8 +24,12 @@ normal:
|
||||||
debug:
|
debug:
|
||||||
$(CC) -o simpleswitcher-debug simpleswitcher.c -std=c99 $(CFLAGS) -Wunused-parameter -g -DDEBUG $(LDADD)
|
$(CC) -o simpleswitcher-debug simpleswitcher.c -std=c99 $(CFLAGS) -Wunused-parameter -g -DDEBUG $(LDADD)
|
||||||
|
|
||||||
install:
|
install: install-man
|
||||||
install -Dm 755 simpleswitcher $(BINDIR)/simpleswitcher
|
install -Dm 755 simpleswitcher $(BINDIR)/simpleswitcher
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
install -Dm 644 simpleswitcher.1 $(MANDIR)
|
||||||
|
gzip $(MANDIR)/simpleswitcher.1
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f simpleswitcher simpleswitcher-debug
|
rm -f simpleswitcher simpleswitcher-debug
|
||||||
|
|
Loading…
Reference in a new issue