mirror of
https://github.com/iustin/mt-st.git
synced 2026-08-02 04:16:01 +00:00
Simple tweak to the Makefile to support DESTDIR
Wondering whether full autoconf/automake is worth for these two simple tools, probably not.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
CFLAGS?= -Wall -O2
|
||||
SBINDIR= /sbin
|
||||
BINDIR= /bin
|
||||
USRBINDIR= /usr/bin
|
||||
MANDIR= /usr/share/man
|
||||
SBINDIR= $(DESTDIR)/sbin
|
||||
BINDIR= $(DESTDIR)/bin
|
||||
USRBINDIR= $(DESTDIR)/usr/bin
|
||||
MANDIR= $(DESTDIR)/usr/share/man
|
||||
|
||||
MTDIR=$(BINDIR)
|
||||
|
||||
@@ -14,6 +14,7 @@ all: $(PROGS)
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
|
||||
|
||||
install: $(PROGS)
|
||||
install -d $(MTDIR) $(MANDIR) $(SBINDIR)
|
||||
install -s mt $(MTDIR)
|
||||
install -c -m 444 mt.1 $(MANDIR)/man1
|
||||
(if [ -f $(MANDIR)/man1/mt.1.gz ] ; then \
|
||||
|
||||
Reference in New Issue
Block a user