3 # Objectfiles, needed for $(TARGET)
4 OBJ
= main.o utilities.o callbacks.o
6 MAN
= vimprobable2.1 vimprobablerc
.1
7 # Used libraries to get needed CFLAGS and LDFLAGS form pkg-config
8 LIBS
= gtk
+-2.0 webkit-1.0 libsoup-2.4
9 # Files to removo by clean target
10 CLEAN
= $(TARGET
) $(OBJ
) $(DEPS
) javascript.h
11 # Files to install by install target or remove by uninstall target
12 INSTALL
= $(BINDIR
)/$(TARGET
) $(addprefix $(MANDIR
)/man1
/,$(MAN
))
14 CFLAGS
+= `pkg-config --cflags $(LIBS)`
15 LDFLAGS
+= `pkg-config --libs $(LIBS)`
18 BINDIR ?
= $(PREFIX
)/bin
19 MANDIR ?
= $(PREFIX
)/share
/man
20 # Mode bits for normal not executable files
22 # Mode bits for directories
24 # Mode bits for executables
26 # Destination directory to install files
29 # auto garerated dependancies for object files
37 javascript.h
: input-focus.js hinting.js
38 perl .
/js-merge-helper.pl
41 $(CC
) $^
$(LDFLAGS
) -o
$@
43 .PHONY
: clean install uninstall
46 install: $(addprefix $(DESTDIR
)/,$(INSTALL
))
50 # pattern rule to inslall executabels
51 $(DESTDIR
)/$(BINDIR
)/%: .
/%
52 -[ -e
'$(@D)' ] || mkdir
-p
'$(@D)' && chmod
$(DMOD
) '$(@D)'
57 # pattern rule to install manpages
58 $(DESTDIR
)/$(MANDIR
)/man1
/%: .
/%
59 -[ -e
'$(@D)' ] || mkdir
-p
'$(@D)' && chmod
$(DMOD
) '$(@D)'
64 $(CC
) -MMD
-c
$(CFLAGS
) $< -o
$@