ref: 299d5c310d66a57ffef293879cb9c44891968d4d
parent: fc9ace41c8767b2b4aed491fe360f39600e33ebb
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Tue Nov 7 19:04:16 EST 2023
makefile: remove manpage target, make all .o depend on headers
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,6 @@
DESTDIR?=
PREFIX?=/usr/local
BIN=${DESTDIR}${PREFIX}/bin
-MAN=${DESTDIR}${PREFIX}/share/man/man1
SDL2_CFLAGS=$$(pkg-config --cflags sdl2)
SDL2_LDFLAGS=$$(pkg-config --libs sdl2)
CFLAGS?=-O2 -g -Wall -Wextra -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-implicit-fallthrough
@@ -85,6 +84,47 @@
world.o\
zone.o\
+HDRS=\
+ adivtab.h\
+ anorms.h\
+ bspfile.h\
+ client.h\
+ cmd.h\
+ common.h\
+ console.h\
+ cvar.h\
+ d_iface.h\
+ d_local.h\
+ dat.h\
+ draw.h\
+ fns.h\
+ input.h\
+ keys.h\
+ mathlib.h\
+ menu.h\
+ model.h\
+ modelgen.h\
+ net.h\
+ pr_comp.h\
+ progdefs.h\
+ progs.h\
+ protocol.h\
+ quakedef.h\
+ r_local.h\
+ r_shared.h\
+ render.h\
+ sbar.h\
+ screen.h\
+ server.h\
+ spritegn.h\
+ unix/libc.h\
+ unix/u.h\
+ vid.h\
+ view.h\
+ wad.h\
+ world.h\
+ zone.h\
+
.PHONY: all default install uninstall clean
all: default
@@ -91,15 +131,12 @@
default: ${TARG}
-install: ${TARG} ${TARG}.1
+install: ${TARG}
install -d ${BIN}
install -m 755 ${TARG} ${BIN}
- install -d ${MAN}
- install -m 644 ${TARG}.1 ${MAN}
uninstall:
rm -f ${BIN}/${TARG}
- rm -f ${MAN}/${TARG}.1
${TARG}: ${OBJS}
${CC} -o $@ ${OBJS} ${LDFLAGS}
@@ -107,6 +144,8 @@
.SUFFIXES: .c .o
.c.o:
${CC} -o $@ -c $< ${CFLAGS}
+
+${OBJS}: ${HDRS}
clean:
rm -f ${TARG} ${OBJS}
--- a/span.c
+++ b/span.c
@@ -15,5 +15,5 @@
case 16: P; case 15: P; case 14: P; case 13: P; case 12: P; case 11: P; case 10: P; case 9: P;
case 8: P; case 7: P; case 6: P; case 5: P; case 4: P; case 3: P; case 2: P; case 1: P;
}
- USED(pdest); USED(s); USED(t);;
+ USED(pdest); USED(s); USED(t);
}