gitignore and makefile
This commit is contained in:
1 parent
a92b69a6f5
commit
23f6e4b88d
2 files changed
+10
No files matched your search
@@ -1 +1,3 @@
|
|||||||
*out
|
*out
|
||||||
|
*.idea
|
||||||
|
*.DS_Store
|
||||||
@@ -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)
|
||||||
Reference in new issue
Block a user