From 8cc4f92e393d778c0f7afb616f023f4656e2ea9c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Sep 2021 18:47:15 +0200 Subject: m + improve makefile + use instead of which doesn' exist anymore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e13f531..383a915 100644 --- a/Makefile +++ b/Makefile @@ -3,26 +3,27 @@ CONFIGFILE = config.mk include $(CONFIGFILE) + all: sleeping-getty +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + sleeping-getty: sleeping-getty.o $(CC) -o $@ sleeping-getty.o $(LDFLAGS) install: sleeping-getty mkdir -p -- "$(DESTDIR)$(PREFIX)/sbin" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man8" - mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/sleeping-getty" cp -- sleeping-getty "$(DESTDIR)$(PREFIX)/sbin/" cp -- sleeping-getty.8 "$(DESTDIR)$(MANPREFIX)/man8/" - cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/sleeping-getty/" uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/sbin/sleeping-getty" -rm -f -- "$(DESTDIR)$(MANPREFIX)/man8/sleeping-getty.8" - -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/sleeping-getty" clean: - -rm -f -- sleeping-getty *.o + -rm -f -- sleeping-getty *.o *.su .SUFFIXES: .SUFFIXES: .o .c -- cgit v1.2.3-70-g09d2