Skip to content

Commit b38c621

Browse files
radaretrufae
authored andcommitted
Fix manpage install/uninstall for user/system
1 parent 14bbf89 commit b38c621

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,16 +349,15 @@ user-install:
349349
cp -f io_frida.$(SO_EXT)* $(DESTDIR)/"$(R2_PLUGDIR)"
350350
$(RM) "$(DESTDIR)/$(R2PM_BINDIR)/r2frida-compile"
351351
cp -f src/r2frida-compile $(DESTDIR)/"$(R2PM_BINDIR)"
352-
mkdir -p "$(DESTDIR)/$(PREFIX)/share/man/man1/"
353-
cp -f r2frida.1 "$(DESTDIR)/$(PREFIX)/share/man/man1/r2frida.1"
354-
cp -f r2frida-compile.1 "$(DESTDIR)/$(PREFIX)/share/man/man1/r2frida-compile.1"
352+
mkdir -p "$(DESTDIR)/$(R2PM_MANDIR)/man1/"
353+
cp -f r2frida.1 "$(DESTDIR)/$(R2PM_MANDIR)/man1/r2frida.1"
354+
cp -f r2frida-compile.1 "$(DESTDIR)/$(R2PM_MANDIR)/man1/r2frida-compile.1"
355355

356356
user-uninstall:
357357
$(RM) "$(DESTDIR)/$(R2_PLUGDIR)/io_frida.$(SO_EXT)"
358358
$(RM) "$(DESTDIR)/$(R2PM_BINDIR)/r2frida-compile"
359-
$(RM) "$(DESTDIR)/$(R2_BINDIR)/r2frida-compile"
360-
$(RM) "$(DESTDIR)/$(PREFIX)/share/man/man1/r2frida.1"
361-
$(RM) "$(DESTDIR)/$(PREFIX)/share/man/man1/r2frida-compile.1"
359+
$(RM) "$(DESTDIR)/$(R2PM_MANDIR)/man1/r2frida.1"
360+
$(RM) "$(DESTDIR)/$(R2PM_MANDIR)/man1/r2frida-compile.1"
362361

363362
install:
364363
mkdir -p "$(DESTDIR)/$(R2_PLUGSYS)"
@@ -367,6 +366,7 @@ install:
367366
cp -f src/r2frida-compile $(DESTDIR)/"$(R2_BINDIR)"
368367
mkdir -p "$(DESTDIR)/$(PREFIX)/share/man/man1"
369368
cp -f r2frida.1 $(DESTDIR)/$(PREFIX)/share/man/man1/r2frida.1
369+
cp -f r2frida-compile.1 "$(DESTDIR)/$(PREFIX)/share/man/man1/r2frida-compile.1"
370370

371371
symstall:
372372
mkdir -p "$(DESTDIR)/$(R2_PLUGSYS)"
@@ -378,6 +378,7 @@ uninstall:
378378
$(RM) "$(DESTDIR)/$(R2_PLUGSYS)/io_frida.$(SO_EXT)"
379379
$(RM) "$(DESTDIR)/$(R2_BINDIR)/r2frida-compile"
380380
$(RM) "$(DESTDIR)/$(PREFIX)/share/man/man1/r2frida.1"
381+
$(RM) "$(DESTDIR)/$(PREFIX)/share/man/man1/r2frida-compile.1"
381382

382383
release:
383384
$(MAKE) android STRIP_SYMBOLS=yes

0 commit comments

Comments
 (0)