include config.mk SRC = petal.c OBJ = ${SRC:.c=.o} all: petal .c.o: ${CC} -c ${CFLAGS} $< ${OBJ}: config.h config.mk config.h: cp config.def.h $@ petal: ${OBJ} ${CC} -o $@ ${OBJ} ${LDFLAGS} clean: rm -f petal ${OBJ} install: all mkdir -p ${DESTDIR}${PREFIX}/bin cp -f petal ${DESTDIR}${PREFIX}/bin chmod 755 ${DESTDIR}${PREFIX}/bin/petal mkdir -p ${DESTDIR}${PREFIX}/share/petal cp -f style.css icon.svg ${DESTDIR}${PREFIX}/share/petal chmod 644 ${DESTDIR}${PREFIX}/share/petal/style.css\ ${DESTDIR}${PREFIX}/share/petal/icon.svg uninstall: rm -f ${DESTDIR}${PREFIX}/bin/petal\ ${DESTDIR}${PREFIX}/share/petal/style.css\ ${DESTDIR}${PREFIX}/share/petal/icon.svg .PHONY: all clean install uninstall