gitignore and makefile

This commit is contained in:
tola committed 2023-03-30 16:13:49 +07:00
1 parent a92b69a6f5
commit 23f6e4b88d
2 files changed
+12 -2

No files matched your search

+3 -1
View File
@@ -1 +1,3 @@
*out *out
*.idea
*.DS_Store
+9 -1
View File
@@ -2,13 +2,21 @@ CC = gcc
CFLAGS = -Wall -std=c17 CFLAGS = -Wall -std=c17
OUT = pwdgen OUT = pwdgen
SRC = src/*.c SRC = src/*.c
DESTDIR = /usr/local/bin
build: build:
@$(CC) $(CFLAGS) $(SRC) -o out/$(OUT) @$(CC) $(CFLAGS) $(SRC) -o out/$(OUT)
all: all:
@make clean
@make build @make build
@make run @make run
run: run:
@./out/$(OUT) @./out/$(OUT)
clean:
@rm -rf out/$(OUT)
install:
@sudo cp -rf out/$(OUT) $(DESTDIR)