2010-05-20 02:08:27 +05:30
|
|
|
-include ../config.mk
|
2010-01-14 00:02:25 +05:30
|
|
|
|
2013-06-20 16:01:02 +05:30
|
|
|
INCS = xbps.h
|
2010-01-14 00:02:25 +05:30
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
2012-10-03 13:40:20 +05:30
|
|
|
sed -e "s|@@VERSION@@|${VERSION}|g" ${INCS}.in > ${INCS}
|
2010-01-14 00:02:25 +05:30
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
2013-06-20 13:56:12 +05:30
|
|
|
install -d $(DESTDIR)$(INCLUDEDIR)/xbps
|
2010-01-24 18:29:58 +05:30
|
|
|
install -m 644 $(INCS) $(DESTDIR)$(INCLUDEDIR)
|
2013-06-20 13:56:12 +05:30
|
|
|
for f in array bool data dictionary number object string; do \
|
|
|
|
install -m 644 xbps/xbps_$${f}.h $(DESTDIR)$(INCLUDEDIR)/xbps; \
|
|
|
|
done
|
2010-01-14 00:02:25 +05:30
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
2010-01-24 18:29:58 +05:30
|
|
|
-rm -f $(DESTDIR)$(INCLUDEDIR)/$(INCS)
|
2010-01-14 00:02:25 +05:30
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2012-10-03 13:40:20 +05:30
|
|
|
-rm -f ${INCS}
|