diff options
author | c+1 | 2023-11-16 10:19:52 -0500 |
---|---|---|
committer | c+1 | 2023-11-16 10:19:52 -0500 |
commit | cd294fb6188ee26caac8c78353f34e757dfd3b10 (patch) | |
tree | c8a72fff3d3580b9a8386611da14aa5112e2d349 | |
parent | 3dae87a760b08aec3f11a757b20a86a74dcf51c8 (diff) |
a couple more makefile items.
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |