fix install rule for empty target
authorfcusack <fcusack>
Mon, 10 Jun 2002 09:25:02 +0000 (09:25 +0000)
committerfcusack <fcusack>
Mon, 10 Jun 2002 09:25:02 +0000 (09:25 +0000)
src/modules/rules.mak

index 31f2c20..6775948 100644 (file)
@@ -153,6 +153,9 @@ reconfig:
 #  Otherwise, install the libraries into $(libdir)
 #
 install:
-       [ "x$(TARGET)" = "x" ] || $(LIBTOOL) --mode=install $(INSTALL) -c $(TARGET).la $(R)$(libdir)/$(TARGET).la
-       ln -sf $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la
+       if [ "x$(TARGET)" != "x" ]; then \
+           $(LIBTOOL) --mode=install $(INSTALL) -c \
+               $(TARGET).la $(R)$(libdir)/$(TARGET).la; \
+           ln -sf $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la; \
+       fi
        @[ "x$(RLM_INSTALL)" = "x" ] || $(MAKE) $(MFLAGS) $(RLM_INSTALL)