mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
- Build RPM packages for VILLASnode and dependencies with the ‚rpm‘, ‚rpm-villas‘, ‚rpm-livxil‘ and ‚rpm-libwebsockets‘ make targets - Upload new RPM packages to the repository with the ‚deploy‘ make target - Build a developer Docker image with the `docker-dev` target - Run the developer image with the `run-docker-dev` target - Build a production Docker image with the `docker` target This requires that all RPM packages have been build previously! - Use hard-coded default paths where applicable - Updated index website - Added some usage information and hints Documentation of the new system is still outstanding
24 lines
No EOL
664 B
Makefile
24 lines
No EOL
664 B
Makefile
TOOLS = $(BUILDDIR)/conf2json
|
|
|
|
TOOLS_CFLAGS = $(CFLAGS)
|
|
TOOLS_LDLIBS = -lconfig -ljansson -lvillas
|
|
TOOLS_LDFLAGS = $(LDFLAGS) -Wl,-rpath,'$$ORIGIN'
|
|
|
|
# Compile executable objects
|
|
$(BUILDDIR)/tools/%.o: tools/%.c $(BUILDDIR)/defines | $$(dir $$@)
|
|
$(CC) $(TOOLS_CFLAGS) -c $< -o $@
|
|
|
|
# Link target executables
|
|
$(TOOLS): $(BUILDDIR)/%: $(BUILDDIR)/tools/%.o | $(LIBS)
|
|
$(CC) $(TOOLS_LDFLAGS) $^ $(TOOLS_LDLIBS) -o $@
|
|
|
|
tools: $(TOOLS)
|
|
|
|
clean-tools:
|
|
rm -rf $(BUILDDIR)/tools $(TOOLS)
|
|
|
|
install-tools: $(TOOLS)
|
|
install -m 0755 tools/villas.sh $(DESTDIR)$(PREFIX)/bin/villas
|
|
install -m 0755 -D -t $(DESTDIR)$(PREFIX)/bin $(TOOLS)
|
|
|
|
.PHONY: tools clean-tools install-tools |