Move scripts directory to boilermake
authorAlan T. DeKok <aland@freeradius.org>
Sun, 24 Feb 2013 01:29:49 +0000 (20:29 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 25 Feb 2013 16:30:08 +0000 (11:30 -0500)
TODO: have "BINDIR" macro, which installs files into bindir
and for sbindir

Makefile
scripts/Makefile [deleted file]
scripts/all.mk [new file with mode: 0644]

index 32c4dcc..9689e75 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ export DESTDIR := $(R)
 include scripts/boiler.mk
 
 # These are not yet converted to the new system
-SUBDIRS                = $(wildcard raddb scripts doc)
+SUBDIRS                = $(wildcard raddb doc)
 
 .PHONY: tests
 tests:
diff --git a/scripts/Makefile b/scripts/Makefile
deleted file mode 100644 (file)
index e78ff67..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# $Id$
-
-include ../Make.inc
-
-all:
-
-install:
-       $(INSTALL) -m 755 rc.radiusd            $(R)$(sbindir)
-       $(INSTALL) -m 755 radsqlrelay           $(R)$(bindir)
-       $(INSTALL) -m 755 raddebug              $(R)$(sbindir)
-       $(INSTALL) -m 755 cryptpasswd           $(R)$(bindir)/radcrypt
-
-clean:
diff --git a/scripts/all.mk b/scripts/all.mk
new file mode 100644 (file)
index 0000000..87831ea
--- /dev/null
@@ -0,0 +1,18 @@
+install: $(R)$(sbindir)/rc.radiusd $(R)$(sbindir)/raddebug \
+       $(R)$(bindir)/radsqlrelay $(R)$(bindir)/radcrypt
+
+$(R)$(sbindir)/rc.radiusd: scripts/rc.radiusd
+       @mkdir -p $(dir $@)
+       @$(INSTALL) -m 755 $< $@
+
+$(R)$(sbindir)/raddebug: scripts/raddebug
+       @mkdir -p $(dir $@)
+       @$(INSTALL) -m 755 $< $@
+
+$(R)$(bindir)/radsqlrelay scripts/radsqlrelay
+       @mkdir -p $(dir $@)
+       @$(INSTALL) -m 755 $< $@
+
+$(R)$(bindir)/radcrypt scripts/cryptpasswd
+       @mkdir -p $(dir $@)
+       @$(INSTALL) -m 755 $< $@