cvsps-3.13-make.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. diff --git a/Makefile b/Makefile
  2. index 6266c9d..4f60d2f 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -8,6 +8,9 @@ INSTALL = install
  6. prefix?=/usr/local
  7. target=$(DESTDIR)$(prefix)
  8. +PROG = cvsps
  9. +MANPAGE = $(PROG).1
  10. +
  11. OBJS= debug.o \
  12. hash.o \
  13. sio.o \
  14. @@ -19,12 +22,12 @@ OBJS= debug.o \
  15. cvsclient.o \
  16. list_sort.o
  17. -all: cvsps
  18. +all: $(PROG) $(MANPAGE)
  19. deps:
  20. makedepend -Y -I. *.c
  21. -cvsps: $(OBJS)
  22. - $(CC) -o cvsps $(OBJS) $(LDFLAGS) $(LDLIBS)
  23. +$(PROG): $(OBJS)
  24. + $(CC) -o $(PROG) $(OBJS) $(LDFLAGS) $(LDLIBS)
  25. check:
  26. @@ -50,17 +53,17 @@ pylint:
  27. .txt.html:
  28. a2x --doctype manpage --format xhtml $*.txt
  29. -install: cvsps.1 all
  30. +install: all
  31. $(INSTALL) -d "$(target)/bin"
  32. $(INSTALL) -d "$(target)/share/man/man1"
  33. - $(INSTALL) cvsps "$(target)/bin"
  34. - $(INSTALL) -m 644 cvsps.1 "$(target)/share/man/man1"
  35. + $(INSTALL) $(PROG) "$(target)/bin"
  36. + $(INSTALL) -m 644 $(MANPAGE) "$(target)/share/man/man1"
  37. tags: *.c *.h
  38. ctags *.c *.h
  39. clean:
  40. - rm -f cvsps *.o core tags cvsps.1 cvsps.html docbook-xsl.css
  41. + rm -f $(PROG) *.o core tags $(MANPAGE) cvsps.html docbook-xsl.css
  42. SOURCES = Makefile *.[ch] merge_utils.sh
  43. DOCS = README COPYING NEWS cvsps.asc TODO