Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 3 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ VERSION_COMMIT := $(if $(COMMIT),$(VERSION)-$(COMMIT),$(VERSION))



#
# systemd files
#

HAVE_SYSTEMD := $(shell pkg-config --exists systemd 2>/dev/null && echo 'yes')

ifeq ($(HAVE_SYSTEMD),yes)
UNIT_DIR := $(shell pkg-config --variable=systemdsystemunitdir systemd)
UNIT_FILES = cc-proxy.service cc-proxy.socket
GENERATED_FILES += $(UNIT_FILES)
endif

#
# Pretty printing
#
Expand All @@ -35,7 +23,7 @@ QUIET_GOBUILD = $(Q:@=@echo ' GOBUILD '$@;)
QUIET_GEN = $(Q:@=@echo ' GEN '$@;)

# Entry point
all: cc-proxy $(UNIT_FILES)
all: cc-proxy

#
# proxy
Expand Down Expand Up @@ -81,22 +69,13 @@ define INSTALL_FILE

endef

all-installable: cc-proxy $(UNIT_FILES)
all-installable: cc-proxy

install: all-installable
$(call INSTALL_EXEC,cc-proxy,$(LIBEXECDIR)/clear-containers)
$(foreach f,$(UNIT_FILES),$(call INSTALL_FILE,$f,$(UNIT_DIR)))

clean:
rm -f cc-proxy $(GENERATED_FILES)

$(GENERATED_FILES): %: %.in Makefile
@mkdir -p `dirname $@`
$(QUIET_GEN)sed \
-e 's|[@]bindir[@]|$(BINDIR)|g' \
-e 's|[@]libexecdir[@]|$(LIBEXECDIR)|' \
-e "s|[@]localstatedir[@]|$(LOCALSTATEDIR)|" \
"$<" > "$@"
rm -f cc-proxy

#
# dist
Expand Down
11 changes: 0 additions & 11 deletions cc-proxy.service.in

This file was deleted.

12 changes: 0 additions & 12 deletions cc-proxy.socket.in

This file was deleted.

129 changes: 0 additions & 129 deletions docs/ksm.md

This file was deleted.

Loading