File: Makefile

package info (click to toggle)
apt-move 4.2.27-5
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 508 kB
  • sloc: sh: 7,946; awk: 275; perl: 170; cpp: 116; makefile: 69
file content (31 lines) | stat: -rw-r--r-- 625 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
# Debian makefile for apt-move

CXXFLAGS += -g -O2 -Wall
LDLIBS = -lapt-pkg

DESTDIR =

PREFIX = $(DESTDIR)/usr
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man8
CONFDIR = $(DESTDIR)/etc
LIBDIR = $(PREFIX)/lib/apt-move
SHAREDIR = $(PREFIX)/share/apt-move

all: fetch

fetch: fetch.o
	$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $^ $(LOADLIBS) $(LDLIBS)

clean:
	rm -f fetch *.o

install: fetch
	install -p apt-move $(BINDIR)
	install fetch $(LIBDIR)
	install del1 move3 pkg1 $(SHAREDIR)
	install -m 644 get[23] move[4-7] *.awk $(SHAREDIR)
	cp -p apt-move.conf $(CONFDIR)
	cp -p apt-move.8 $(MANDIR)

.PHONY: all clean install