XFree86 utils: build utils man pages using XORG_MANPAGE_SECTIONS
Nothing requires the use of a C preprocessor Using standard file extensions (.man) means no need for .gitignore Use standard directory and makefile Fix trailing whitespaces Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
		
							parent
							
								
									ac5ffef60e
								
							
						
					
					
						commit
						b9276cb86b
					
				|  | @ -2233,6 +2233,7 @@ hw/xfree86/vgahw/Makefile | ||||||
| hw/xfree86/x86emu/Makefile | hw/xfree86/x86emu/Makefile | ||||||
| hw/xfree86/xaa/Makefile | hw/xfree86/xaa/Makefile | ||||||
| hw/xfree86/utils/Makefile | hw/xfree86/utils/Makefile | ||||||
|  | hw/xfree86/utils/man/Makefile | ||||||
| hw/xfree86/utils/cvt/Makefile | hw/xfree86/utils/cvt/Makefile | ||||||
| hw/xfree86/utils/gtf/Makefile | hw/xfree86/utils/gtf/Makefile | ||||||
| hw/dmx/config/Makefile | hw/dmx/config/Makefile | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
| SUBDIRS = \
 | SUBDIRS = \
 | ||||||
| 	gtf \
 | 	gtf \
 | ||||||
| 	cvt | 	cvt \
 | ||||||
|  | 	man | ||||||
|  |  | ||||||
|  | @ -1,3 +1 @@ | ||||||
| #		Add & Override for this directory and it's subdirectories |  | ||||||
| cvt | cvt | ||||||
| cvt.man |  | ||||||
|  |  | ||||||
|  | @ -32,11 +32,3 @@ cvt_SOURCES = cvt.c \ | ||||||
| 	$(top_srcdir)/os/xprintf.c | 	$(top_srcdir)/os/xprintf.c | ||||||
| 
 | 
 | ||||||
| cvt_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS) | cvt_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS) | ||||||
| 
 |  | ||||||
| man1_MANS = cvt.man |  | ||||||
| 
 |  | ||||||
| CLEANFILES = $(man1_MANS) |  | ||||||
| 
 |  | ||||||
| include $(top_srcdir)/cpprules.in |  | ||||||
| 
 |  | ||||||
| EXTRA_DIST = cvt.man.pre |  | ||||||
|  |  | ||||||
|  | @ -1,3 +1 @@ | ||||||
| #		Add & Override for this directory and it's subdirectories |  | ||||||
| gtf | gtf | ||||||
| gtf.man |  | ||||||
|  |  | ||||||
|  | @ -25,20 +25,3 @@ bin_PROGRAMS = gtf | ||||||
| gtf_SOURCES = gtf.c | gtf_SOURCES = gtf.c | ||||||
| gtf_CFLAGS = $(XORG_CFLAGS) | gtf_CFLAGS = $(XORG_CFLAGS) | ||||||
| gtf_LDADD = -lm | gtf_LDADD = -lm | ||||||
| 
 |  | ||||||
| appmandir = $(APP_MAN_DIR) |  | ||||||
| 
 |  | ||||||
| appman_PRE = gtf.man |  | ||||||
| appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) |  | ||||||
| 
 |  | ||||||
| include $(top_srcdir)/cpprules.in |  | ||||||
| 
 |  | ||||||
| EXTRA_DIST = gtf.man.pre |  | ||||||
| BUILT_SOURCES = $(appman_PRE) |  | ||||||
| CLEANFILES = $(appman_PRE) $(appman_DATA) |  | ||||||
| 
 |  | ||||||
| SUFFIXES += .$(APP_MAN_SUFFIX) .man |  | ||||||
| 
 |  | ||||||
| .man.$(APP_MAN_SUFFIX): |  | ||||||
| 	-$(AM_V_at)rm -f $@ |  | ||||||
| 	$(AM_V_at)$(LN_S) $< $@ |  | ||||||
|  |  | ||||||
|  | @ -0,0 +1,10 @@ | ||||||
|  | appmandir = $(APP_MAN_DIR) | ||||||
|  | appman_PRE = cvt.man gtf.man | ||||||
|  | appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX)) | ||||||
|  | 
 | ||||||
|  | EXTRA_DIST = $(appman_PRE) | ||||||
|  | CLEANFILES = $(appman_DATA) | ||||||
|  | SUFFIXES = .$(APP_MAN_SUFFIX) .man | ||||||
|  | 
 | ||||||
|  | .man.$(APP_MAN_SUFFIX): | ||||||
|  | 	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ | ||||||
|  | @ -13,7 +13,7 @@ cvt - calculate VESA CVT mode lines | ||||||
| .I Cvt | .I Cvt | ||||||
| is a utility for calculating VESA Coordinated Video Timing modes.  Given the | is a utility for calculating VESA Coordinated Video Timing modes.  Given the | ||||||
| desired horizontal and vertical resolutions, a modeline adhering to the CVT | desired horizontal and vertical resolutions, a modeline adhering to the CVT | ||||||
| standard is printed. This modeline can be included in __xservername__  | standard is printed. This modeline can be included in __xservername__ | ||||||
| .B __xconfigfile__(__filemansuffix__) | .B __xconfigfile__(__filemansuffix__) | ||||||
| . | . | ||||||
| 
 | 
 | ||||||
		Loading…
	
		Reference in New Issue