Skip to content

Commit c701b24

Browse files
committed
switched to config.def.h like cfm does
1 parent 30fa238 commit c701b24

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
promptus
2+
config.h

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
TARGET = promptus
22
SRC = promptus.c
3+
CONF = config.h
4+
DEFCONF = config.def.h
35
PREFIX ?= /usr/local
46

57
CFLAGS += -O3 -std=c11 -Wall -W -pedantic
@@ -9,9 +11,12 @@ CPPFLAGS += -D_POSIX_C_SOURCE=1
911

1012
all: $(TARGET)
1113

12-
$(TARGET): config.h $(SRC)
14+
$(TARGET): $(CONF) $(SRC)
1315
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(SRC) -o $@
1416

17+
$(CONF):
18+
@cp -v $(DEFCONF) $(CONF)
19+
1520
install: $(TARGET)
1621
mkdir -p $(DESTDIR)$(PREFIX)/bin
1722
install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)

config.h renamed to config.def.h

File renamed without changes.

0 commit comments

Comments
 (0)