Fix directory creation in install target
Also move man6 out of MANDIR to keep compatibility with modern canonical usage of installation variables in Linux. Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
parent
6ab60b0cc6
commit
0a94e7271c
10
Makefile
10
Makefile
@ -34,7 +34,7 @@ LDFLAGS =
|
|||||||
BINDIR = /usr/local/bin
|
BINDIR = /usr/local/bin
|
||||||
|
|
||||||
# Where the man page should be put
|
# Where the man page should be put
|
||||||
MANDIR = /usr/local/man/man6
|
MANDIR = /usr/local/man
|
||||||
|
|
||||||
# Where figlet will search first for fonts (the ".flf" files).
|
# Where figlet will search first for fonts (the ".flf" files).
|
||||||
DEFAULTFONTDIR = /usr/local/share/figlet
|
DEFAULTFONTDIR = /usr/local/share/figlet
|
||||||
@ -59,7 +59,7 @@ MAN = figlet.6
|
|||||||
$(CC) -c $(CFLAGS) -DDEFAULTFONTDIR=\"$(DEFAULTFONTDIR)\" \
|
$(CC) -c $(CFLAGS) -DDEFAULTFONTDIR=\"$(DEFAULTFONTDIR)\" \
|
||||||
-DDEFAULTFONTFILE=\"$(DEFAULTFONTFILE)\" -o $*.o $<
|
-DDEFAULTFONTFILE=\"$(DEFAULTFONTFILE)\" -o $*.o $<
|
||||||
|
|
||||||
all: figlet chkfont
|
all: $(BINS)
|
||||||
|
|
||||||
figlet: $(OBJS)
|
figlet: $(OBJS)
|
||||||
$(LD) $(LDFLAGS) -o $@ $(OBJS)
|
$(LD) $(LDFLAGS) -o $@ $(OBJS)
|
||||||
@ -70,10 +70,12 @@ chkfont: chkfont.o
|
|||||||
clean:
|
clean:
|
||||||
rm -f *.o *~ core figlet chkfont
|
rm -f *.o *~ core figlet chkfont
|
||||||
|
|
||||||
install: $(BINS)
|
install: all
|
||||||
|
mkdir -p $(DESTDIR)$(BINDIR)
|
||||||
|
mkdir -p $(DESTDIR)$(MANDIR)/man6
|
||||||
mkdir -p $(DESTDIR)$(DEFAULTFONTDIR)
|
mkdir -p $(DESTDIR)$(DEFAULTFONTDIR)
|
||||||
cp $(BINS) $(DESTDIR)$(BINDIR)
|
cp $(BINS) $(DESTDIR)$(BINDIR)
|
||||||
cp $(MAN) $(DESTDIR)$(MANDIR)
|
cp $(MAN) $(DESTDIR)$(MANDIR)/man6
|
||||||
cp fonts/*.flf $(DEFAULTFONTDIR)
|
cp fonts/*.flf $(DEFAULTFONTDIR)
|
||||||
cp fonts/*.flc $(DEFAULTFONTDIR)
|
cp fonts/*.flc $(DEFAULTFONTDIR)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user