2010-05-19 22:38:27 +02:00
|
|
|
-include ../config.mk
|
2010-01-13 19:32:25 +01:00
|
|
|
|
2013-06-20 12:31:02 +02:00
|
|
|
INCS = xbps.h
|
2010-01-13 19:32:25 +01:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
2014-05-31 06:44:07 +02:00
|
|
|
sed -e "s|@@VERSION@@|${VERSION}|g" ${INCS}.in > ${INCS}
|
2010-01-13 19:32:25 +01:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
2013-06-20 10:26:12 +02:00
|
|
|
install -d $(DESTDIR)$(INCLUDEDIR)/xbps
|
2010-01-24 13:59:58 +01:00
|
|
|
install -m 644 $(INCS) $(DESTDIR)$(INCLUDEDIR)
|
2013-06-20 10:26:12 +02:00
|
|
|
for f in array bool data dictionary number object string; do \
|
|
|
|
install -m 644 xbps/xbps_$${f}.h $(DESTDIR)$(INCLUDEDIR)/xbps; \
|
|
|
|
done
|
2010-01-13 19:32:25 +01:00
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
2010-01-24 13:59:58 +01:00
|
|
|
-rm -f $(DESTDIR)$(INCLUDEDIR)/$(INCS)
|
2010-01-13 19:32:25 +01:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2012-10-03 10:10:20 +02:00
|
|
|
-rm -f ${INCS}
|