cgroup/Makefile

18 lines
596 B
Makefile
Raw Normal View History

2020-02-25 10:54:05 +00:00
CONFIG=cgconfig.conf cgred.conf cgrules.conf
CONFIG_DIR=/etc
SERVICES=cgconfigparser.service cgrulesgend.service
SYSTEMD_DIR=/lib/systemd/system
install:
cp $(CONFIG) $(CONFIG_DIR)
cp $(SERVICES) $(SYSTEMD_DIR)
$(foreach service,$(SERVICES), systemctl enable $(service);)
$(foreach service,$(SERVICES), systemctl start $(service);)
clean:
$(foreach config,$(CONFIG), rm -i $(CONFIG_DIR)/$(config);)
$(foreach service,$(SERVICES), systemctl stop $(service);)
$(foreach service,$(SERVICES), systemctl disable $(service);)
$(foreach service,$(SERVICES), rm -i $(SYSTEMD_DIR)/$(service);)