File: Makefile

package info (click to toggle)
vpcs 0.5b2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 636 kB
  • sloc: ansic: 10,165; sh: 299; makefile: 40
file content (32 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (3)
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
31
32
# Makefile for VPCS 0.5b2

# Operating System Type
# Linux = linux
# Windows = cygwin
# MacOSX = osx
# FreeBSD = fbsd
export VPCS_OS?=linux

# Executable binary extension
export PREFIX?=/usr
export BIN_EXT?=


.PHONY: all install clean
all: vpcs

vpcs:
	@echo Building VPCS for $(VPCS_OS) on $(ARCH)
	$(MAKE) -C src -f Makefile.$(VPCS_OS)
	mv src/vpcs vpcs$(BIN_EXT)

install: vpcs$(BIN_EXT)
	@echo "Installing VPCS to $(DESTDIR)"
	install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/man/man1
	install vpcs$(BIN_EXT) $(DESTDIR)$(PREFIX)/bin/
	install -m644 man/vpcs.1 $(DESTDIR)$(PREFIX)/share/man/man1/

clean:
	$(MAKE) -C src -f Makefile.$(VPCS_OS) clean
	$(RM) -f vpcs$(BIN_EXT)