[naily] Added naily module/gem to build system
This commit is contained in:
parent
ddd48f38e6
commit
ce62a3ee3e
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
BUILD_DIR:=build
|
BUILD_DIR:=build
|
||||||
|
|
||||||
MODULES=gnupg bootstrap nailgun test os os/centos os/ubuntu iso packages/rpm
|
MODULES=gnupg bootstrap nailgun test os os/centos os/ubuntu iso packages/rpm naily
|
||||||
|
|
||||||
.PHONY: all clean test test-unit help mirror FORCE
|
.PHONY: all clean test test-unit help mirror FORCE
|
||||||
|
|
||||||
|
@ -341,9 +341,10 @@ $(ISOROOT)/eggs:
|
|||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
cp $(LOCAL_MIRROR)/eggs/* $(ISOROOT)/eggs/
|
cp $(LOCAL_MIRROR)/eggs/* $(ISOROOT)/eggs/
|
||||||
|
|
||||||
$(ISOROOT)/gems/gems:
|
$(ISOROOT)/gems/gems: $(BUILD_DIR)/gems/naily.gem
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
cp $(LOCAL_MIRROR)/gems/* $(ISOROOT)/gems/gems
|
cp $(LOCAL_MIRROR)/gems/* $@
|
||||||
|
cp $(filter %.gem,$^) $@
|
||||||
gem generate_index -d $(ISOROOT)/gems
|
gem generate_index -d $(ISOROOT)/gems
|
||||||
|
|
||||||
# MAIN ISO RULE
|
# MAIN ISO RULE
|
||||||
|
11
naily/module.mk
Normal file
11
naily/module.mk
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
/:=$(BUILD_DIR)/gems/
|
||||||
|
|
||||||
|
$/naily.gem: naily/naily.gemspec \
|
||||||
|
$(addprefix naily/bin/,$(call find-files,naily/bin)) \
|
||||||
|
$(addprefix naily/lib/,$(call find-files,naily/lib))
|
||||||
|
@mkdir -p $(@D)
|
||||||
|
cd $(<D) && \
|
||||||
|
gem build $(<F)
|
||||||
|
mv $(<D)/naily-*.gem $@
|
||||||
|
|
Loading…
Reference in New Issue
Block a user