Skip to content

Commit 4dcf75c

Browse files
committed
git-extra: include WhoUses.exe
This fixes git-for-windows/git#408 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 64c477a commit 4dcf75c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

git-extra/PKGBUILD

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ package() {
4848
install -m755 $startdir/scripts/notepad $pkgdir/usr/bin
4949
install -m755 $startdir/scripts/wordpad $pkgdir/usr/bin
5050
install -m755 $builddir/create-shortcut.exe $pkgdir/${MINGW_PREFIX}/bin
51+
install -m755 $builddir/WhoUses.exe $pkgdir/${MINGW_PREFIX}/bin
5152
install -m755 $startdir/profile.d/git-prompt.sh $pkgdir/etc/profile.d
5253
install -m755 $startdir/profile.d/aliases.sh $pkgdir/etc/profile.d
5354
install -m755 $startdir/profile.d/env.sh $pkgdir/etc/profile.d

git-extra/sources/Makefile

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
BUILDDIR ?= .
22
SRCDIR ?= .
33

4-
all: $(BUILDDIR)/create-shortcut.exe
4+
all: $(BUILDDIR)/create-shortcut.exe $(BUILDDIR)/WhoUses.exe
55

66
$(BUILDDIR)/create-shortcut.exe: $(BUILDDIR)/create-shortcut.o
77
$(CC) $(CFLAGS) -o $@ $^ -luuid -lole32
88

99
$(BUILDDIR)/%.o: $(SRCDIR)/%.c
1010
$(CC) -c $(CFLAGS) $< -o $@
1111

12+
$(BUILDDIR)/WhoUses.exe: $(BUILDDIR)/WhoUses.o $(BUILDDIR)/SystemInfo.o
13+
$(CXX) $(CXXFLAGS) -o $@ $^
14+
15+
$(BUILDDIR)/SystemInfo.o: $(SRCDIR)/SystemInfo.cpp $(SRCDIR)/SystemInfo.h
16+
17+
$(BUILDDIR)/%.o: $(SRCDIR)/%.cpp
18+
$(CXX) -c $(CXXFLAGS) $< -o $@
19+
1220
clean:
1321
rm $(BUILDDIR)/create-shortcut.exe $(BUILDDIR)/create-shortcut.o
22+
rm $(BUILDDIR)/WhoUses.exe $(BUILDDIR)/WhoUses.o \
23+
$(BUILDDIR)/SystemInfo.o

0 commit comments

Comments
 (0)