Krolyxon
Commit b605b98

Branches

Refs →

nsxivb605b98

Made Makefile more POSIX-compliant

Author
Bert Münnich
Date
2012-05-13 21:39 +0200
Parent
4c40cc2
Commit
b605b98455f2caf2e984764c8102641d868966cf

+9 −7

1 file changed

  1. M Makefile +9 −7
M Makefile View
@@ -1,13 +1,13 @@
1−VERSION = git-20120506
2−
3−CC = gcc
4−CFLAGS = -ansi -Wall -pedantic -O2
5−LDFLAGS =
6−LIBS = -lX11 -lImlib2 -lgif
1+VERSION = git-20120513
72
83 PREFIX = /usr/local
94 MANPREFIX = $(PREFIX)/share/man
105
6+CC = gcc
7+CFLAGS = -ansi -Wall -pedantic -O2 -I$(PREFIX)
8+LDFLAGS = -L$(PREFIX)
9+LIBS = -lX11 -lImlib2 -lgif
10+
1111 SRC = commands.c exif.c image.c main.c options.c thumbs.c util.c window.c
1212 OBJ = $(SRC:.c=.o)
1313
@@ -40,7 +40,9 @@ clean:
4040
4141 install: all
4242 @echo "installing executable file to $(DESTDIR)$(PREFIX)/bin"
43− @install -D -m 755 sxiv $(DESTDIR)$(PREFIX)/bin/sxiv
43+ @mkdir -p $(DESTDIR)$(PREFIX)/bin
44+ @cp -f sxiv $(DESTDIR)$(PREFIX)/bin/
45+ @chmod 755 $(DESTDIR)$(PREFIX)/bin/sxiv
4446 @echo "installing manual page to $(DESTDIR)$(MANPREFIX)/man1"
4547 @mkdir -p $(DESTDIR)$(MANPREFIX)/man1
4648 @sed "s/VERSION/$(VERSION)/g" sxiv.1 > $(DESTDIR)$(MANPREFIX)/man1/sxiv.1