suckless_dictpopup/Makefile

31 lines
469 B
Makefile
Raw Normal View History

2023-05-10 17:47:42 +00:00
include config.mk
2023-05-09 10:42:03 +00:00
2023-05-10 17:47:42 +00:00
SRC = popup.c
OBJ = $(SRC:.c=.o)
2023-05-09 10:42:03 +00:00
2023-05-10 17:47:42 +00:00
all: options popup
2023-05-09 10:42:03 +00:00
2023-05-10 17:47:42 +00:00
options:
@echo popup build options:
@echo "CFLAGS = $(CFLAGS)"
@echo "LDFLAGS = $(LDFLAGS)"
@echo "CC = $(CC)"
2023-05-09 10:42:03 +00:00
2023-05-10 17:47:42 +00:00
.c.o:
$(CC) -c $(CFLAGS) $<
popup: popup.o
$(CC) -o $@ popup.o $(LDFLAGS)
2023-05-09 10:42:03 +00:00
install: herbe
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f herbe ${DESTDIR}${PREFIX}/bin
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/herbe
clean:
rm -f herbe
.PHONY: all install uninstall clean