diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,8 +1,10 @@ all: sxiv +VERSION=git-20110126 + CC?=gcc PREFIX?=/usr/local -CFLAGS+= -std=c99 -Wall -pedantic -g +CFLAGS+= -std=c99 -Wall -pedantic -DVERSION=\"$(VERSION)\" LDFLAGS+= LIBS+= -lX11 -lImlib2 @@ -16,7 +18,10 @@ sxiv: $(OBJFILES) $(CC) $(CFLAGS) -c -o $@ $< install: all - install -D -m 4755 -o root -g root sxiv $(PREFIX)/sbin/sxiv + install -D -m 4755 -o root -g root sxiv $(PREFIX)/bin/sxiv + mkdir -p $(PREFIX)/share/man/man1 + sed "s/VERSION/$(VERSION)/g" sxiv.1 > $(PREFIX)/share/man/man1/sxiv.1 + chmod 644 $(PREFIX)/share/man/man1/sxiv.1 clean: rm -f sxiv *.o |