File: Makefile

package info (click to toggle)
fbxkb 0.6-3
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 640 kB
  • sloc: ansic: 760; makefile: 83; sh: 44
file content (27 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (4)
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
# Part 0
# load common stuff
TOPDIR = ..
include $(TOPDIR)/Makefile.common

# backslashify slashes to avoid problems with sed
BPREFIX := $(subst /,\/,$(PREFIX))

SRC = fbxkb.1
TARGET = fbxkb.1.gz

all: $(TARGET)
$(TARGET): $(SRC)
	sed 's/PREFIX/$(BPREFIX)/g' < $(SRC) | gzip - > $@



clean:
	$(RM) $(TARGET) *~


install: all
	install -d  $(PREFIX)/share/man/man1
	install -m 644 $(TARGET) $(PREFIX)/share/man/man1

uninstall:
	rm -f $(PREFIX)/share/man/man1/$(TARGET)