diff options
| author | Jan Sucan <jan@jansucan.com> | 2021-05-01 10:57:28 +0200 |
|---|---|---|
| committer | Jan Sucan <jan@jansucan.com> | 2021-05-01 10:57:28 +0200 |
| commit | 36a92af6ee3c20c93835a34ddeb148c34ccf023c (patch) | |
| tree | 791fa756d58b132dd8df50a808bfaa168989ddcc | |
| parent | 7e9034e80ea8ce4dc8a4635a42894e7294ecc85e (diff) | |
Makefile: Avoid unnecessary rebuilding of the executable
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
