aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc+12023-11-16 10:19:52 -0500
committerc+12023-11-16 10:19:52 -0500
commitcd294fb6188ee26caac8c78353f34e757dfd3b10 (patch)
treec8a72fff3d3580b9a8386611da14aa5112e2d349
parent3dae87a760b08aec3f11a757b20a86a74dcf51c8 (diff)
a couple more makefile items.
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c948a26..05525e7 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ dbg_options:
@echo "DBG_CFLAGS: ${DBG_CFLAGS}"
@echo
+%.o: %.c include/%.h
+ ${CC} -c $< -o $@
+
halk: reg_options ${OBJS}
${CC} ${OBJS} ${REG_CFLAGS} -o ${BIN}.out
@@ -29,9 +32,6 @@ dbg: CFLAGS += ${DBG_CFLAGS}
dbg: dbg_options ${OBJS}
${CC} ${OBJS} ${DBG_CFLAGS} -o ${BIN}.out
-%.o: %.c include/%.h
- ${CC} -c ${CFLAGS} $< -o $@
-
install: all
mkdir -p ${PREFIX}
cp -f ${BIN}.out ${PREFIX}/${BIN}
@@ -47,6 +47,6 @@ me a:
@exit
sandwich:
- @[ "$(USER)" = "root" ] && echo "Okay." || echo "What? Make(1) it yourself."
+ @[ $(id -u) -eq 0 ] && echo "Okay." || echo "What? Make(1) it yourself."
.PHONY: all reg_options dbg_options dbg install uninstall clean