~kota/pcf

ref: v1.0.1 pcf/Makefile -rw-r--r-- 624 bytes
cc9e504bDakota Walsh Change placeholder manpage into functional manpage 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# pcf
# Copyright (C) 2019 Dakota Walsh
# GPL3+ See LICENSE in this repo for details.
.POSIX:

include config.mk

all: clean build

build:
	go build
	scdoc < pcf.1.scd | sed "s/VERSION/$(VERSION)/g" > pcf.1

clean:
	rm -f pcf
	rm -f pcf.1

install: build
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp -f pcf $(DESTDIR)$(PREFIX)/bin
	chmod 755 $(DESTDIR)$(PREFIX)/bin/pcf
	mkdir -p $(DESTDIR)$(MANPREFIX)/man1
	cp -f pcf.1 $(DESTDIR)$(MANPREFIX)/man1/pcf.1
	chmod 644 $(DESTDIR)$(MANPREFIX)/man1/pcf.1

uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/pcf
	rm -f $(DESTDIR)$(MANPREFIX)/man1/pcf.1

.PHONY: all build clean install uninstall