]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Move the "install binaries" code to rules.mak
authorAlan T. DeKok <aland@freeradius.org>
Wed, 18 May 2011 09:38:05 +0000 (11:38 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 18 May 2011 09:38:05 +0000 (11:38 +0200)
This simplifies the sub-makefiles, and means it's harder
to get things wrong

src/modules/rlm_dbm/Makefile.in
src/modules/rlm_eap/Makefile.in
src/modules/rlm_ippool/Makefile.in
src/modules/rlm_mschap/Makefile
src/modules/rules.mak

index 3e901fd858713eece871bc13837ffe5b85958d69..5ee66fb9c76bf9cf37e84547fb4e8b5714088519 100644 (file)
@@ -8,7 +8,7 @@ HEADERS     =
 RLM_UTILS   = @dbm_utils@
 RLM_CFLAGS  = @dbm_cflags@
 RLM_LIBS    = @dbm_ldflags@
-RLM_INSTALL = @dbm_install@
+RLM_INSTALL = 
 
 include ../rules.mak
 
@@ -19,12 +19,3 @@ rlm_dbm_parser: rlm_dbm_parser.lo $(LIBRADIUS)
 rlm_dbm_cat: rlm_dbm_cat.lo $(LIBRADIUS)
        $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
                -o $@ $^ $(RLM_LIBS) $(LIBS)
-
-#
-#  Install the utility programs in the bin directory.
-#
-rlm_dbm_install: rlm_dbm_cat rlm_dbm_parser
-       $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP) \
-               rlm_dbm_cat$(EXEEXT) $(R)$(bindir)
-       $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP) \
-               rlm_dbm_parser$(EXEEXT) $(R)$(bindir)
index 5576294c0d4e9ef5427134ed0ce2312a63c64176..de4e0bdd27b4673d0211dc882d852833a58d4c35 100644 (file)
@@ -37,7 +37,6 @@ radeapclient.lo: radeapclient.c $(HEADERS)
 
 install-subdirs:
        @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=install common
-       $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP) radeapclient$(EXEEXT) $(R)$(bindir)
 
 .PHONY: common $(RLM_SUBDIRS)
 
index a9f9fb2f958ff383b47ff8a651aaa39a0f8b8c67..a3613d24acdad137dcf126565bf7c876b90283e4 100644 (file)
@@ -8,7 +8,7 @@ HEADERS     =
 RLM_UTILS   = @ippool_utils@
 RLM_CFLAGS  = @ippool_cflags@
 RLM_LIBS    = @ippool_ldflags@
-RLM_INSTALL = @ippool_install@
+RLM_INSTALL = 
 
 include ../rules.mak
 
@@ -22,9 +22,3 @@ rlm_ippool_tool.8: rlm_ippool_tool.pod
        pod2man --release=" " --date="October 2nd, 2003" \
                --center="FreeRADIUS Daemon" --section=8 \
                rlm_ippool_tool.pod > rlm_ippool_tool.8
-
-# Install binary files into the bin directory
-rlm_ippool_install: rlm_ippool_tool rlm_ippool_tool.8
-       $(INSTALL) -m 644 rlm_ippool_tool.8 $(R)$(mandir)/man8
-       $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP) \
-               rlm_ippool_tool$(EXEEXT) $(R)$(bindir)
index d2d5813bee5614cdbad8da1940318ae52577980f..3fd2fd9a26e061e94ec5d7fee93649b8304666e9 100644 (file)
@@ -11,7 +11,7 @@ RLM_CFLAGS    =
 RLM_LDFLAGS    =
 RLM_LIBS       =
 RLM_UTILS      = smbencrypt
-RLM_INSTALL    = smbencrypt-install
+RLM_INSTALL 
 
 # over-ride the previous assignment if we're not building anything
 include ../rules.mak
@@ -21,8 +21,3 @@ $(LT_OBJS): $(HEADERS)
 smbencrypt: smbencrypt.lo smbdes.lo $(LIBRADIUS)
        $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) \
                -o $@ $^ $(RLM_LIBS) $(LIBS)
-
-smbencrypt-install:
-       $(INSTALL) -d -m 755 $(R)$(bindir)
-       $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP) \
-               smbencrypt$(EXEEXT) $(R)$(bindir)
index e2098956557235896ef3a7556dd1f995774f439e..d1a286f98c2c0e8f2cec59560f83bca7b6600427 100644 (file)
@@ -174,3 +174,9 @@ install:
            rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la; \
            ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la || exit $$?; \
        fi
+ifneq ($(RLM_UTILS),)
+       $(INSTALL) -d -m 755 $(R)$(bindir)
+       for x in $(RLM_UTILS); do \
+               $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(INSTALLSTRIP) $$x$(EXEEXT) $(R)$(bindir); \
+       done
+endif