aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c3ccaeb..04b5c90 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,12 @@ CFLAGS=-Wall
SOURCES=*.c
HEADERS=*.h
-all: $(SOURCES) $(HEADERS) program_info_header
+all: $(PROGRAM_NAME)
+
+$(PROGRAM_NAME): $(SOURCES) $(HEADERS) program_info.h
$(CC) $(CFLAGS) -o $(PROGRAM_NAME) $(SOURCES)
-program_info_header:
+program_info.h:
echo "#define PROGRAM_NAME_STR \"$(PROGRAM_NAME)\"" >program_info.h
echo "#define PROGRAM_VERSION_STR \"$(PROGRAM_VERSION)\"" >>program_info.h