d243200850
This is part one of moving the authoritive version from src/usr.sbin/pkg_install to pkgsrc/pkgtools/pkg_install/files. Discussed with and agreed by: jlam@, agc@, adrianp@ Raised issue to and not objected by: core@
45 lines
899 B
Makefile
45 lines
899 B
Makefile
# $NetBSD: Makefile.in,v 1.1.1.1 2007/07/16 13:01:46 joerg Exp $
|
|
|
|
srcdir= @srcdir@
|
|
|
|
prefix= @prefix@
|
|
exec_prefix= @exec_prefix@
|
|
sbindir= @sbindir@
|
|
mandir= @mandir@
|
|
|
|
man1dir= $(mandir)/man1
|
|
cat1dir= $(mandir)/cat1
|
|
|
|
CC= @CC@
|
|
CCLD= $(CC)
|
|
LIBS= -linstall @LIBS@
|
|
CPPFLAGS= @CPPFLAGS@ -I. -I$(srcdir) -I../lib
|
|
DEFS= @DEFS@
|
|
CFLAGS= @CFLAGS@
|
|
LDFLAGS= @LDFLAGS@ -L../lib
|
|
|
|
INSTALL= @INSTALL@
|
|
|
|
PROG= pkg_delete
|
|
|
|
OBJS= main.o perform.o
|
|
|
|
all: $(PROG)
|
|
|
|
.c.o:
|
|
$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $<
|
|
|
|
$(PROG): $(OBJS)
|
|
$(CCLD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(PROG)
|
|
|
|
install:
|
|
$(INSTALL) -m 755 -d ${DESTDIR}$(sbindir)
|
|
$(INSTALL) -m 755 -d ${DESTDIR}$(man1dir)
|
|
$(INSTALL) -m 755 -d ${DESTDIR}$(cat1dir)
|
|
$(INSTALL) $(PROG) ${DESTDIR}$(sbindir)/$(PROG)
|
|
$(INSTALL) -m 444 $(PROG).1 ${DESTDIR}$(man1dir)/$(PROG).1
|
|
$(INSTALL) -m 444 $(PROG).cat1 ${DESTDIR}$(cat1dir)/$(PROG).0
|