Pastebin

Check-in [4d98de1cbf]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Improve Makefile to be more generic
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4d98de1cbf005946590bff507b31f40effb028b584eac78f5144612bcef571f5
User & Date: jef 2019-11-11 09:23:14
Context
2019-11-15
08:41
Fix curl command in man page check-in: 408d88b84d user: jef tags: trunk
2019-11-11
09:23
Improve Makefile to be more generic check-in: 4d98de1cbf user: jef tags: trunk
09:08
Reduce textarea height check-in: 2c9e1b8edb user: jef tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Makefile.

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	# generate text documentation from man pages
	# (section title is erased using a perl on liner)
	@mandoc -I os="" -T locale $(PROG).1 \
		| col -bx \
		| perl -pe 's/^(\S+\(\d\))(\s+.*\s+)\1$$/$$1 . " " x length($$2) . $$1/e' \
		> $(PROG).1.txt
	
pastebin: $(GOFILES)
	go build -ldflags "-s -w"

install: $(PROG) $(PROG).1
	mkdir -p $(PREFIX)/bin
	cp -f $(PROG) $(PREFIX)/bin
	chmod 0755 $(PREFIX)/bin/$(PROG)
	mkdir -p $(MANPREFIX)/man1







|







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	# generate text documentation from man pages
	# (section title is erased using a perl on liner)
	@mandoc -I os="" -T locale $(PROG).1 \
		| col -bx \
		| perl -pe 's/^(\S+\(\d\))(\s+.*\s+)\1$$/$$1 . " " x length($$2) . $$1/e' \
		> $(PROG).1.txt
	
$(PROG): $(GOFILES)
	go build -ldflags "-s -w"

install: $(PROG) $(PROG).1
	mkdir -p $(PREFIX)/bin
	cp -f $(PROG) $(PREFIX)/bin
	chmod 0755 $(PREFIX)/bin/$(PROG)
	mkdir -p $(MANPREFIX)/man1