mirror of
https://git.faggot-chan.online/timetolocal/
synced 2026-11-05 05:05:43 +01:00
21 lines
369 B
Makefile
21 lines
369 B
Makefile
CC = gcc
|
|
CFLAGS = -Wall -Wextra -O2 -pipe
|
|
TARGET = timetolocal
|
|
SRC = $(wildcard *.c)
|
|
PREFIX = /usr/local
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJ)
|
|
@mkdir -p $(@D)
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(SRC)
|
|
|
|
install: $(TARGET)
|
|
install -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(notdir $(TARGET))
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/$(notdir $(TARGET))
|
|
|
|
clean:
|
|
rm -rf $(TARGET)
|