]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/Makefile
Fixed rlm_stg removing broken by previous patch.
[stg.git] / projects / rlm_stg / Makefile
index 6190491f70a6d709c83a617d62c50edb09c795cd..3d4104838be58f4aa0a851281f2b08758a983648 100644 (file)
@@ -58,16 +58,29 @@ install: install-bin
 
 install-bin:
 ifeq ($(DEBUG), yes)
+ifeq ($(OS), linux)
        install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/freeradius/$(PROG)
+else
+       install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/$(PROG)
+endif
 else
        install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/freeradius/$(PROG)
+ifeq ($(OS), linux)
+       install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/freeradius/$(PROG)
+else
+       install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/$(PROG)
+endif
 endif
        $(MAKE) -C $(DIR_LIBSRC) install
 
 uninstall: uninstall-bin
 
 uninstall-bin:
+ifeq ($(OS), linux)
        rm -f $(PREFIX)/usr/lib/freeradius/$(PROG)
+else
+       rm -f $(PREFIX)/usr/lib/$(PROG)
+endif
 
 ifneq ($(MAKECMDGOALS),distclean)
 ifneq ($(MAKECMDGOALS),clean)