pemdas-calculator/Makefile

18 lines
500 B
Makefile

.PHONY: all clean install
all: calc-gtk calc-cli
calc-gtk:
gcc ${shell pkg-config --cflags gtk+-3.0} -o calc-gtk calc.c gtk-calc.c ${shell pkg-config --libs gtk+-3.0} -lm
calc-cli:
gcc -o calc-cli calc.c cli.c -lm
clean:
rm calc-cli || true
rm calc-gtk || true
install: calc-gtk calc-cli
cp -f calc-gtk /usr/local/bin/calc-gtk
cp -f calc-cli /usr/local/bin/calc-cli
mkdir -p /usr/local/share/applications || true
cp -f tesses-calc.desktop /usr/local/share/applications/tesses-calc.desktop