aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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