2018-05-15 09:09:20 +08:00
|
|
|
|
|
|
|
OUT_DIR ?= .
|
|
|
|
|
2018-03-29 16:10:00 +08:00
|
|
|
all:
|
2018-05-17 16:39:12 +08:00
|
|
|
$(CC) -g acrnlog.c -o $(OUT_DIR)/acrnlog -lpthread
|
2018-06-01 15:04:56 +08:00
|
|
|
cp acrnlog.service $(OUT_DIR)/acrnlog.service
|
2018-03-29 16:10:00 +08:00
|
|
|
|
|
|
|
clean:
|
2018-06-04 15:57:25 +08:00
|
|
|
rm -f $(OUT_DIR)/acrnlog
|
2018-06-13 15:54:22 +08:00
|
|
|
ifneq ($(OUT_DIR),.)
|
2018-06-04 15:57:25 +08:00
|
|
|
rm -f $(OUT_DIR)/acrnlog.service
|
2018-06-13 15:54:22 +08:00
|
|
|
endif
|
2018-05-17 03:21:45 +08:00
|
|
|
|
|
|
|
install: $(OUT_DIR)/acrnlog
|
|
|
|
install -d $(DESTDIR)/usr/bin
|
|
|
|
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrnlog
|
2018-06-01 15:04:56 +08:00
|
|
|
install -d $(DESTDIR)/usr/lib/systemd/system
|
|
|
|
install -p -D -m 0644 $(OUT_DIR)/acrnlog.service $(DESTDIR)/usr/lib/systemd/system
|