xbps/include/Makefile
Juan RP 23fef46e9e Implemented GH #39
The system repository directory set to <prefix>/share/xbps/repo.d contains
system repository configuration files (.conf) that can be overrided by the admin
in <sysconfdir>/xbps/repo.d bearing the same file name.
2014-05-30 11:48:10 +02:00

24 lines
498 B
Makefile

-include ../config.mk
INCS = xbps.h
.PHONY: all
all:
sed -e "s|@@VERSION@@|${VERSION}|g;s|@@PREFIX@@|${PREFIX}|g" ${INCS}.in > ${INCS}
.PHONY: install
install:
install -d $(DESTDIR)$(INCLUDEDIR)/xbps
install -m 644 $(INCS) $(DESTDIR)$(INCLUDEDIR)
for f in array bool data dictionary number object string; do \
install -m 644 xbps/xbps_$${f}.h $(DESTDIR)$(INCLUDEDIR)/xbps; \
done
.PHONY: uninstall
uninstall:
-rm -f $(DESTDIR)$(INCLUDEDIR)/$(INCS)
.PHONY: clean
clean:
-rm -f ${INCS}