]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/Makefile
Proper checks for libs.
[stg.git] / projects / rlm_stg / Makefile
index 3a4f5d7ab2d997adc849920379f8840779e6f24f..3d4104838be58f4aa0a851281f2b08758a983648 100644 (file)
@@ -76,7 +76,11 @@ endif
 uninstall: uninstall-bin
 
 uninstall-bin:
 uninstall: uninstall-bin
 
 uninstall-bin:
+ifeq ($(OS), linux)
        rm -f $(PREFIX)/usr/lib/freeradius/$(PROG)
        rm -f $(PREFIX)/usr/lib/freeradius/$(PROG)
+else
+       rm -f $(PREFIX)/usr/lib/$(PROG)
+endif
 
 ifneq ($(MAKECMDGOALS),distclean)
 ifneq ($(MAKECMDGOALS),clean)
 
 ifneq ($(MAKECMDGOALS),distclean)
 ifneq ($(MAKECMDGOALS),clean)