gitignore and makefile

This commit is contained in:
tola
2023-03-30 16:13:49 +07:00
parent a92b69a6f5
commit 23f6e4b88d
2 changed files with 12 additions and 2 deletions
+2
View File
@@ -1 +1,3 @@
*out
*.idea
*.DS_Store
+8
View File
@@ -2,13 +2,21 @@ CC = gcc
CFLAGS = -Wall -std=c17
OUT = pwdgen
SRC = src/*.c
DESTDIR = /usr/local/bin
build:
@$(CC) $(CFLAGS) $(SRC) -o out/$(OUT)
all:
@make clean
@make build
@make run
run:
@./out/$(OUT)
clean:
@rm -rf out/$(OUT)
install:
@sudo cp -rf out/$(OUT) $(DESTDIR)