update build

This commit is contained in:
Pin
2021-10-22 15:37:09 -04:00
parent cb5a9f0a85
commit b1087e35d6
3 changed files with 8 additions and 4 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
./bin
bin/

View File

@@ -1,9 +1,13 @@
OUTPUT_DIR = ./bin
OUTPUT = -o $(OUTPUT_DIR)/PROG
SOURCES = *.c
OUTPUT_BIN = ${OUTPUT_DIR}/PROG
OUTPUT = -o ${OUTPUT_BIN}
SOURCES = ./cmd/lock.c
build: output_dir
gcc -Wall ${SOURCES} ${OUTPUT:PROG=upgrade}
gcc -Wall ${SOURCES} ${OUTPUT:PROG=package-lock}
output_dir:
mkdir -p ${OUTPUT_DIR}
install:
mv ${OUTPUT_BIN:PROG=package-lock} /usr/sbin/

View File