mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-26 22:36:02 +01:00
96b0393531
A little fix that solves the forwards, backwards searching problem and an overworked, cleaned up Makefile
28 lines
600 B
Makefile
28 lines
600 B
Makefile
LIBS = gtk+-2.0 poppler poppler-glib
|
|
FLAGS = `pkg-config --cflags --libs $(LIBS)`
|
|
SOURCE = zathura.c
|
|
TARGET = zathura
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): zathura.c config.h
|
|
gcc $(FLAGS) -Wall -o $(TARGET) $(SOURCE)
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|
|
|
|
debug:
|
|
gcc $(FLAGS) -Wall -o $(TARGET) $(SOURCE) -g
|
|
|
|
valgrind: debug
|
|
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./${TARGET}
|
|
|
|
install: all
|
|
@echo installing executeable to /usr/bin
|
|
@mkdir -p /usr/bin
|
|
@cp -f ${TARGET} /usr/bin
|
|
@chmod 755 /usr/bin/${TARGET}
|
|
|
|
uninstall:
|
|
@echo removing executeable from /usr/bin
|
|
@rm -f /usr/bin/${TARGET}
|