mbpfan-josie

[#80] New Makefile without systemd part

72e902f7725022750a909ad85b8ce0dbb881c0ed
Daniel Graziotin <daniel@ineed.coffee> · 2016-08-31T09:26 · browse files at this commit

parents: ecb9d8d

diff --git a/Makefile b/Makefile
index 0d28970..fe02a4a 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,6 @@ OUTPUT_PATH = bin/
 SOURCE_PATH = src/
 EXE = bin/mbpfan
 CONF = mbpfan.conf
-SYSD = mbpfan.service
 DOC = README.md
 MAN = mbpfan.8.gz
 
@@ -26,8 +25,8 @@ ifeq ($(COMPILER), G++)
   LIBS = -lm
 # LIBPATH = -L../gc/.libs
   LIBPATH =
-  CPPFLAGS +=  $(COPT) -g $(INCLUDES) -Wall
-  LDFLAGS += $(LIBPATH) -g $(LIBS) -Wall
+  CPPFLAGS +=  $(COPT) -g $(INCLUDES) #-Wall
+  LDFLAGS += $(LIBPATH) -g $(LIBS) #-Wall
   DEP = dep
 else
   OBJ = obj
@@ -76,7 +75,6 @@ install:
 	install -d $(DESTDIR)/usr/share/doc/mbpfan
 	install $(EXE) $(DESTDIR)/usr/sbin
 	install -m644 $(CONF) $(DESTDIR)/etc
-	install -m644 $(SYSD) $(DESTDIR)/lib/systemd/system
 	install -m644 $(DOC) $(DESTDIR)/usr/share/doc/mbpfan
 	install -d $(DESTDIR)/usr/share/man/man8
 	install -m644 $(MAN) $(DESTDIR)/usr/share/man/man8
@@ -85,7 +83,7 @@ install:
 	@echo "INSTALL COMPLETED"
 	@echo "******************"
 	@echo ""
-	@echo "A configuration file has been copied to /etc/mbpfan.conf"
+	@echo "A configuration file has been copied (might overwrite existing file) to /etc/mbpfan.conf."
 	@echo "See README.md file to have mbpfan automatically started at system boot."
 	@echo ""
 	@echo "Please run the tests now with the command"