Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CFLAGS = @CFLAGS@ -I.
LDFLAGS = @LDFLAGS@
CC = @CC@

prefix = $(DESTDIR)@prefix@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
Expand Down Expand Up @@ -60,34 +60,34 @@ dlockfile.o: lockfile.c
-c lockfile.c -o dlockfile.o

install_static: static install_common
install -d -m 755 -g root -p $(libdir)
install -m 644 liblockfile.a $(libdir)
install -d -m 755 -p $(DESTDIR)$(libdir)
install -m 644 liblockfile.a $(DESTDIR)$(libdir)

install_shared: shared install_static install_common
install -d -m 755 -g root -p $(libdir)
install -d -m 755 -p $(DESTDIR)$(libdir)
install -m 755 liblockfile.so \
$(libdir)/liblockfile.so.$(SOVER)
ln -s liblockfile.so.$(SOVER) $(libdir)/liblockfile.so.$(MAJOR)
ln -s liblockfile.so.$(SOVER) $(libdir)/liblockfile.so
$(DESTDIR)$(libdir)/liblockfile.so.$(SOVER)
ln -sf liblockfile.so.$(SOVER) $(DESTDIR)$(libdir)/liblockfile.so.$(MAJOR)
ln -sf liblockfile.so.$(SOVER) $(DESTDIR)$(libdir)/liblockfile.so
if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi

install_common:
install -d -m 755 -g root -p $(includedir)
install -d -m 755 -g root -p $(bindir)
install -d -m 755 -g root -p $(mandir)/man1
install -d -m 755 -g root -p $(mandir)/man3
install -m 644 lockfile.h maillock.h $(includedir)
install -d -m 755 -p $(DESTDIR)$(includedir)
install -d -m 755 -p $(DESTDIR)$(bindir)
install -d -m 755 -p $(DESTDIR)$(mandir)/man1
install -d -m 755 -p $(DESTDIR)$(mandir)/man3
install -m 644 lockfile.h maillock.h $(DESTDIR)$(includedir)
if [ "$(MAILGROUP)" != "" ]; then\
install -g $(MAILGROUP) -m 2755 dotlockfile $(bindir);\
install -g $(MAILGROUP) -m 2755 dotlockfile $(DESTDIR)$(bindir);\
else \
install -g root -m 755 dotlockfile $(bindir); \
install -m 755 dotlockfile $(DESTDIR)$(bindir); \
fi
install -m 644 *.1 $(mandir)/man1
install -m 644 *.3 $(mandir)/man3
install -m 644 *.1 $(DESTDIR)$(mandir)/man1
install -m 644 *.3 $(DESTDIR)$(mandir)/man3

install_nfslib: nfslib
install -d -m 755 -g root -p $(nfslockdir)
install -m 755 nfslock.so.$(NFSVER) $(nfslockdir)
install -d -m 755 -p $(DESTDIR)$(nfslockdir)
install -m 755 nfslock.so.$(NFSVER) $(DESTDIR)$(nfslockdir)
if test "$(DESTDIR)" = ""; then @LDCONFIG@; fi

test: test-stamp
Expand Down