diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:47:15 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:47:15 +0200 |
commit | 8cc4f92e393d778c0f7afb616f023f4656e2ea9c (patch) | |
tree | 208c572112477c2462e1e606a7cc6d776824286e /Makefile | |
parent | Simplify and cahgne license (diff) | |
download | sleeping-getty-1.2.tar.gz sleeping-getty-1.2.tar.bz2 sleeping-getty-1.2.tar.xz |
m + improve makefile + use <sys/ioctl.h> instead of <stropts.h> which doesn' exist anymore1.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |