Install the xbps_api.h header.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20100113183225-gz8xn8fa5hp2vdan
This commit is contained in:
Juan RP 2010-01-13 19:32:25 +01:00
parent 05bad9c0d5
commit 27dd304d76
4 changed files with 24 additions and 5 deletions

View File

@ -1,6 +1,6 @@
include vars.mk include vars.mk
SUBDIRS = lib bin SUBDIRS = include lib bin
.PHONY: all .PHONY: all
all: all:

View File

@ -12,18 +12,18 @@ all:
.PHONY: install .PHONY: install
install: install:
@for dir in $(SUBDIRS); do \ @for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir install || exit 1; \ $(MAKE) -C $$dir install || exit 1; \
done done
.PHONY: uninstall .PHONY: uninstall
uninstall: uninstall:
@for bin in $(SUBDIRS); do \ @for dir in $(SUBDIRS); do \
-rm -f $(SBINDIR)/$$bin; \ $(MAKE) -C $$dir uninstall || exit1; \
done done
.PHONY: clean .PHONY: clean
clean: clean:
@for dir in $(SUBDIRS); do \ @for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clean || exit 1; \ $(MAKE) -C $$dir clean || exit 1; \
done done

18
include/Makefile Normal file
View File

@ -0,0 +1,18 @@
include ../vars.mk
INCS = xbps_api.h
.PHONY: all
all:
.PHONY: install
install:
install -d $(INCLUDEDIR)
install -m 644 $(INCS) $(INCLUDEDIR)
.PHONY: uninstall
uninstall:
-rm -f $(INCLUDEDIR)/$(INCS)
.PHONY: clean
clean:

View File

@ -3,6 +3,7 @@
PREFIX ?= /usr/local PREFIX ?= /usr/local
SBINDIR ?= $(DESTDIR)$(PREFIX)/sbin SBINDIR ?= $(DESTDIR)$(PREFIX)/sbin
LIBDIR ?= $(DESTDIR)$(PREFIX)/lib LIBDIR ?= $(DESTDIR)$(PREFIX)/lib
INCLUDEDIR ?= $(DESTDIR)$(PREFIX)/include
MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man8 MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man8
TOPDIR ?= .. TOPDIR ?= ..
INSTALL_STRIPPED ?= -s INSTALL_STRIPPED ?= -s