Browse Source

Fix strip in plugin `make dist`, fix RESOURCES in compile.mk

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
9609cc2295
2 changed files with 6 additions and 4 deletions
  1. +3
    -2
      compile.mk
  2. +3
    -2
      plugin.mk

+ 3
- 2
compile.mk View File

@@ -39,12 +39,13 @@ CXXFLAGS += $(FLAGS)


OBJECTS += $(patsubst %, build/%.o, $(SOURCES)) OBJECTS += $(patsubst %, build/%.o, $(SOURCES))
DEPS = $(patsubst %, build/%.d, $(SOURCES)) DEPS = $(patsubst %, build/%.d, $(SOURCES))
RESOURCES +=




# Final targets # Final targets


$(TARGET): $(OBJECTS)
$(CXX) -o $@ $^ $(LDFLAGS)
$(TARGET): $(RESOURCES) $(OBJECTS)
$(CXX) -o $@ $(OBJECTS) $(LDFLAGS)




-include $(DEPS) -include $(DEPS)


+ 3
- 2
plugin.mk View File

@@ -26,7 +26,7 @@ ifeq ($(ARCH), win)
endif endif




all: $(RESOURCES) $(TARGET)
all: $(TARGET)


include $(RACK_DIR)/compile.mk include $(RACK_DIR)/compile.mk


@@ -38,11 +38,12 @@ dist: all
mkdir -p dist/$(SLUG) mkdir -p dist/$(SLUG)
# Strip and copy plugin binary # Strip and copy plugin binary
cp $(TARGET) dist/$(SLUG)/ cp $(TARGET) dist/$(SLUG)/
strip -s dist/$(SLUG)/$(TARGET)
strip dist/$(SLUG)/$(TARGET)
# Copy distributables # Copy distributables
cp -R $(DISTRIBUTABLES) dist/$(SLUG)/ cp -R $(DISTRIBUTABLES) dist/$(SLUG)/
# Create ZIP package # Create ZIP package
cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG)



.PHONY: clean dist .PHONY: clean dist
.DEFAULT_GOAL := all .DEFAULT_GOAL := all

Loading…
Cancel
Save