blob: 790cc3a91e1e80ba5cebc474ef4d24c92a51292c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--- projects/rlm_stg/Makefile.org 2013-01-18 16:17:18.000000000 +0200
+++ projects/rlm_stg/Makefile 2013-01-18 16:19:13.000000000 +0200
@@ -57,16 +57,28 @@
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
+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)
|