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
SUBDIRS = lib bin
SUBDIRS = include lib bin
.PHONY: all
all:

View File

@ -12,18 +12,18 @@ all:
.PHONY: install
install:
@for dir in $(SUBDIRS); do \
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir install || exit 1; \
done
.PHONY: uninstall
uninstall:
@for bin in $(SUBDIRS); do \
-rm -f $(SBINDIR)/$$bin; \
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir uninstall || exit1; \
done
.PHONY: clean
clean:
@for dir in $(SUBDIRS); do \
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clean || exit 1; \
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
SBINDIR ?= $(DESTDIR)$(PREFIX)/sbin
LIBDIR ?= $(DESTDIR)$(PREFIX)/lib
INCLUDEDIR ?= $(DESTDIR)$(PREFIX)/include
MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man8
TOPDIR ?= ..
INSTALL_STRIPPED ?= -s