Install the xbps_api.h header.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20100113183225-gz8xn8fa5hp2vdan
This commit is contained in:
parent
05bad9c0d5
commit
27dd304d76
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
|||||||
include vars.mk
|
include vars.mk
|
||||||
|
|
||||||
SUBDIRS = lib bin
|
SUBDIRS = include lib bin
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all:
|
all:
|
||||||
|
@ -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
18
include/Makefile
Normal 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:
|
1
vars.mk
1
vars.mk
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user