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))
DEPS = $(patsubst %, build/%.d, $(SOURCES))
RESOURCES +=


# Final targets

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


-include $(DEPS)


+ 3
- 2
plugin.mk View File

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


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

include $(RACK_DIR)/compile.mk

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


.PHONY: clean dist
.DEFAULT_GOAL := all

Loading…
Cancel
Save