File: Makefile

package info (click to toggle)
disk-filltest 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 128 kB
  • sloc: ansic: 404; makefile: 27; sh: 7
file content (35 lines) | stat: -rw-r--r-- 701 bytes parent folder | download
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
33
34
35
# Very simple Makefile for disk-filltest

CC ?= cc

CFLAGS ?= -O3
CFLAGS += -W -Wall -ansi

# Directories for executables and manuals
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
man1dir = $(prefix)/man1

GZIP ?= gzip
INSTALL ?= install
RM ?= rm

all: disk-filltest

disk-filltest: disk-filltest.c
	$(CC) $(CFLAGS) -o disk-filltest disk-filltest.c

disk-filltest.1.gz: disk-filltest.1
	$(GZIP) -9k disk-filltest.1

install: install-bin install-man

install-bin: disk-filltest
	$(INSTALL) -m 0755 -t "$(DESTDIR)/$(bindir)" -D disk-filltest

install-man: disk-filltest.1.gz
	$(INSTALL) -m 0644 -t  "$(DESTDIR)/$(man1dir)" -D disk-filltest.1.gz

clean:
	$(RM) -f disk-filltest