xbps/include/Makefile

21 lines
335 B
Makefile
Raw Normal View History

-include ../config.mk
INCS = xbps_api.h
.PHONY: all
all:
sed -e "s|@@VERSION@@|${VERSION}|g" ${INCS}.in > ${INCS}
.PHONY: install
install:
install -d $(DESTDIR)$(INCLUDEDIR)
install -m 644 $(INCS) $(DESTDIR)$(INCLUDEDIR)
.PHONY: uninstall
uninstall:
-rm -f $(DESTDIR)$(INCLUDEDIR)/$(INCS)
.PHONY: clean
clean:
-rm -f ${INCS}