make.diff 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- Makefile 2004-11-21 10:11:04.000000000 -0800
  2. +++ Makefile.new 2016-02-24 16:51:45.053767286 -0800
  3. @@ -5,6 +5,7 @@
  4. # Note that $(DESTDIR) is used by the Debian build process.
  5. prefix = $(DESTDIR)/usr
  6. +MANPATH = share/man
  7. XROOT = /usr/X11R6
  8. INCLUDES = -I$(XROOT)/include
  9. LDPATH = -L$(XROOT)/lib
  10. @@ -43,7 +44,7 @@
  11. #DEFINES += -DXDEBUG # show some X calls
  12. DEFINES += -DVERSION=\"$(version).$(revision).$(subrev)\" $(DEBIAN)
  13. -CFLAGS += $(INCLUDES) $(DEFINES) -Wall -Os
  14. +CFLAGS += $(INCLUDES) $(DEFINES) -Wall
  15. #CFLAGS += $(INCLUDES) $(DEFINES) -g -Wall
  16. CFLAGS += -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wnested-externs -Winline -Wwrite-strings -Wundef
  17. LDFLAGS += $(LDPATH) $(LIBS)
  18. @@ -69,10 +70,10 @@
  19. doinstall:
  20. if [ -f yeahwm.exe ]; then mv yeahwm.exe yeahwm; fi
  21. - mkdir -p $(prefix)/bin $(prefix)/share/man/man1
  22. + mkdir -p $(prefix)/bin $(prefix)/$(MANPATH)/man1
  23. install -s yeahwm $(prefix)/bin
  24. - #install yeahwm.1 $(prefix)/share/man/man1
  25. - #gzip -9 $(prefix)/share/man/man1/yeahwm.1
  26. + install -m0644 yeahwm.1 $(prefix)/$(MANPATH)/man1
  27. + gzip -9 $(prefix)/$(MANPATH)/man1/yeahwm.1
  28. install: doinstall