File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ gitexecdir ?= $(prefix)/libexec/git-core
1010CC ?= gcc
1111CFLAGS ?= -g -O2 -Wall
1212PKG_CONFIG ?= pkg-config
13+ INSTALL ?= install
1314RM ?= rm -f
1415
1516INCS: =$(shell $(PKG_CONFIG ) --cflags libsecret-1 glib-2.0)
@@ -21,7 +22,11 @@ LIBS:=$(shell $(PKG_CONFIG) --libs libsecret-1 glib-2.0)
2122git-credential-libsecret : git-credential-libsecret.o
2223 $(CC ) $(CFLAGS ) -o $@ $^ $(LDFLAGS ) $(LIBS )
2324
25+ install : git-credential-libsecret
26+ $(INSTALL ) -d -m 755 $(DESTDIR )$(gitexecdir )
27+ $(INSTALL ) -m 755 $< $(DESTDIR )$(gitexecdir )
28+
2429clean :
2530 $(RM ) git-credential-libsecret git-credential-libsecret.o
2631
27- .PHONY : all clean
32+ .PHONY : all install clean
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ gitexecdir ?= $(prefix)/libexec/git-core
99
1010CC ?= gcc
1111CFLAGS ?= -g -O2 -Wall
12+ INSTALL ?= install
1213RM ?= rm -f
1314
1415% .o : % .c
@@ -18,7 +19,11 @@ git-credential-osxkeychain: git-credential-osxkeychain.o
1819 $(CC ) $(CFLAGS ) -o $@ $^ $(LDFLAGS ) \
1920 -framework Security -framework CoreFoundation
2021
22+ install : git-credential-osxkeychain
23+ $(INSTALL ) -d -m 755 $(DESTDIR )$(gitexecdir )
24+ $(INSTALL ) -m 755 $< $(DESTDIR )$(gitexecdir )
25+
2126clean :
2227 $(RM ) git-credential-osxkeychain git-credential-osxkeychain.o
2328
24- .PHONY : all clean
29+ .PHONY : all install clean
You can’t perform that action at this time.
0 commit comments