Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Inappropriate [embedded] |
| 2 | |
| 3 | Signed-off-by: Ming Liu <ming.liu@windriver.com> |
| 4 | --- |
| 5 | Makefile.sub | 10 +++++----- |
| 6 | 1 file changed, 5 insertions(+), 5 deletions(-) |
| 7 | |
| 8 | --- a/contrib/groffer/Makefile.sub |
| 9 | +++ b/contrib/groffer/Makefile.sub |
| 10 | @@ -38,16 +38,16 @@ groffer: groffer.sh groffer2.sh version. |
| 11 | $(RM) $@; |
| 12 | sed \ |
| 13 | -e "s|@g@|$(g)|g" \ |
| 14 | - -e "s|@BINDIR@|$(DESTDIR)$(bindir)|g" \ |
| 15 | + -e "s|@BINDIR@|$(bindir)|g" \ |
| 16 | -e "s|@libdir@|$(DESTDIR)$(libdir)|g" \ |
| 17 | -e "s|@VERSION@|$(version)$(revision)|g" \ |
| 18 | $(srcdir)/groffer.sh >$@; |
| 19 | chmod +x $@ |
| 20 | |
| 21 | install_data: groffer |
| 22 | - -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir) |
| 23 | - -$(RM) $(DESTDIR)$(bindir)/groffer |
| 24 | - $(INSTALL_SCRIPT) groffer $(DESTDIR)$(bindir)/groffer |
| 25 | + -test -d $(bindir) || $(mkinstalldirs) $(bindir) |
| 26 | + -$(RM) $(bindir)/groffer |
| 27 | + $(INSTALL_SCRIPT) groffer $(bindir)/groffer |
| 28 | -test -d $(DESTDIR)$(libdir)/groff/groffer || \ |
| 29 | $(mkinstalldirs) $(DESTDIR)$(libdir)/groff/groffer |
| 30 | -$(RM) $(DESTDIR)$(libdir)/groff/groffer/groffer2.sh |
| 31 | @@ -58,7 +58,7 @@ install_data: groffer |
| 32 | $(DESTDIR)$(libdir)/groff/groffer/version.sh |
| 33 | |
| 34 | uninstall_sub: |
| 35 | - -$(RM) $(DESTDIR)$(bindir)/groffer |
| 36 | + -$(RM) $(bindir)/groffer |
| 37 | -$(RM) $(DESTDIR)$(libdir)/groff/groffer/groffer2.sh |
| 38 | -$(RM) $(DESTDIR)$(libdir)/groff/groffer/version.sh |
| 39 | -rmdir $(DESTDIR)$(libdir)/groff/groffer |