diff options
Diffstat (limited to '')
-rw-r--r-- | src/modules/rlm_ruby/all.mk.in | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/modules/rlm_ruby/all.mk.in b/src/modules/rlm_ruby/all.mk.in new file mode 100644 index 0000000..03644b2 --- /dev/null +++ b/src/modules/rlm_ruby/all.mk.in @@ -0,0 +1,22 @@ +TARGETNAME := @targetname@ + +ifneq "$(TARGETNAME)" "" +TARGET := $(TARGETNAME).a +endif + +SOURCES := $(TARGETNAME).c + +SRC_CFLAGS := @mod_cflags@ +TGT_LDLIBS := @mod_ldflags@ + +ifneq "$(TARGETNAME)" "" +install: $(R)$(modconfdir)/ruby/example.rb + +$(R)$(modconfdir)/ruby: | $(R)$(modconfdir) + @echo INSTALL $(patsubst $(R)$(raddbdir)%,raddb%,$@) + @$(INSTALL) -d -m 750 $@ + +$(R)$(modconfdir)/ruby/example.rb: src/modules/rlm_ruby/example.rb | $(R)$(modconfdir)/ruby + @$(ECHO) INSTALL $(notdir $<) + @$(INSTALL) -m 755 $< $(R)$(modconfdir)/ruby +endif |