aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-01-14 19:26:56 +0000
committerJoursoir <chat@joursoir.net>2021-01-14 19:30:18 +0000
commit3165436ed14cb353843abf01e9208c088583bc40 (patch)
tree0cc5d967c94198a90402a732ca6e8842665b58fc /Makefile
parentca3fc712cd9038c587cc897426dbadedcee0cfd0 (diff)
downloadlock-password-3165436ed14cb353843abf01e9208c088583bc40.tar.gz
lock-password-3165436ed14cb353843abf01e9208c088583bc40.tar.bz2
lock-password-3165436ed14cb353843abf01e9208c088583bc40.zip
rewrite shell script 'copy' to c language
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c0e734f..3598def 100755
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,11 @@
PREFIX = /usr/local/bin
CC = gcc
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g # -DDEBUG
MAN_PATH = /usr/share/man/man1
-SOURCES = src/easydir.c src/handerror.c src/implementation.c src/main.c
-OBJECTS = easydir.o handerror.o implementation.o main.o
+SOURCES = src/*.c
+OBJECTS = *.o
MAN_SOURCES = man/lpass.1
MAN_OBJECTS = lpass.1.gz
-BASH = lpass_copy.sh
EXECUTABLE = lpass
.PHONY: all clean install uninstall
@@ -26,7 +25,6 @@ $(EXECUTABLE): $(OBJECTS)
install: all
@echo installing files to $(PREFIX)
@install $(EXECUTABLE) $(PREFIX) && chmod 755 $(PREFIX)/$(EXECUTABLE)
- @install $(BASH) $(PREFIX) && chmod 755 $(PREFIX)/$(BASH)
@echo installing man page
@cat $(MAN_SOURCES) | gzip > $(MAN_OBJECTS)
@install $(MAN_OBJECTS) $(MAN_PATH)
@@ -36,5 +34,4 @@ uninstall:
@echo deleting man page
@rm -rf \
$(PREFIX)/$(EXECUTABLE) \
- $(PREFIX)/$(BASH) \
$(MAN_PATH)/$(MAN_OBJECTS) \ No newline at end of file