forked from mirrors/tftp-hpa-google
Use $(LN_S)
This commit is contained in:
parent
98d7543721
commit
1a41c6ae7c
3 changed files with 10 additions and 5 deletions
|
@ -35,6 +35,9 @@ X = @EXEEXT@
|
||||||
# Install into alternate root area, e.g. for package generation
|
# Install into alternate root area, e.g. for package generation
|
||||||
INSTALLROOT =
|
INSTALLROOT =
|
||||||
|
|
||||||
|
# Link
|
||||||
|
LN_S = @LN_S@
|
||||||
|
|
||||||
# Install program
|
# Install program
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
|
|
@ -187,6 +187,7 @@ AC_SUBST(TFTPD_LIBS)
|
||||||
AC_SUBST(LIBOBJS)
|
AC_SUBST(LIBOBJS)
|
||||||
AC_SUBST(TFTPDOBJS)
|
AC_SUBST(TFTPDOBJS)
|
||||||
|
|
||||||
|
AC_PROG_LN_S
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,11 @@ all: tftpd$(X) tftpd.8
|
||||||
tftpd$(X): $(OBJS)
|
tftpd$(X): $(OBJS)
|
||||||
$(CC) $(LDFLAGS) $^ $(TFTPD_LIBS) -o $@
|
$(CC) $(LDFLAGS) $^ $(TFTPD_LIBS) -o $@
|
||||||
|
|
||||||
tftpsubs.c:
|
tftpsubs.c:
|
||||||
ln -sf ../tftp/tftpsubs.c .
|
$(LN_S) -f ../tftp/tftpsubs.c .
|
||||||
tftpsubs.h:
|
|
||||||
ln -sf ../tftp/tftpsubs.h .
|
tftpsubs.h:
|
||||||
|
$(LN_S) -f ../tftp/tftpsubs.h .
|
||||||
|
|
||||||
$(OBJS): tftpsubs.h
|
$(OBJS): tftpsubs.h
|
||||||
|
|
||||||
|
@ -25,7 +26,7 @@ install: all
|
||||||
mkdir -p $(INSTALLROOT)$(SBINDIR) $(INSTALLROOT)$(MANDIR)/man8
|
mkdir -p $(INSTALLROOT)$(SBINDIR) $(INSTALLROOT)$(MANDIR)/man8
|
||||||
$(INSTALL_PROGRAM) tftpd$(X) $(INSTALLROOT)$(SBINDIR)/in.tftpd
|
$(INSTALL_PROGRAM) tftpd$(X) $(INSTALLROOT)$(SBINDIR)/in.tftpd
|
||||||
$(INSTALL_DATA) tftpd.8 $(INSTALLROOT)$(MANDIR)/man8/in.tftpd.8
|
$(INSTALL_DATA) tftpd.8 $(INSTALLROOT)$(MANDIR)/man8/in.tftpd.8
|
||||||
cd $(INSTALLROOT)$(MANDIR)/man8 && ln -sf in.tftpd.8 tftpd.8
|
cd $(INSTALLROOT)$(MANDIR)/man8 && $(LN_S) -f in.tftpd.8 tftpd.8
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.obj *.exe tftpd tftpsubs.c tftpsubs.h tftpd.8
|
rm -f *.o *.obj *.exe tftpd tftpsubs.c tftpsubs.h tftpd.8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue