2009-08-17 22:37:20 +05:30
|
|
|
include vars.mk
|
|
|
|
|
2009-10-18 14:45:39 +05:30
|
|
|
SUBDIRS = lib bin
|
2009-08-17 22:37:20 +05:30
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
2009-10-30 16:47:26 +05:30
|
|
|
@echo
|
|
|
|
@echo "********************************"
|
|
|
|
@echo "*** Building shared libxbps ***"
|
|
|
|
@echo "********************************"
|
|
|
|
@echo
|
|
|
|
$(MAKE) -C lib
|
|
|
|
@echo
|
|
|
|
@echo "********************************"
|
|
|
|
@echo "*** Building shared binaries ***"
|
|
|
|
@echo "********************************"
|
|
|
|
@echo
|
|
|
|
$(MAKE) -C bin
|
|
|
|
@echo
|
|
|
|
@echo "********************************"
|
|
|
|
@echo "*** Building static binaries ***"
|
|
|
|
@echo "********************************"
|
|
|
|
@echo
|
|
|
|
$(MAKE) -C lib clean
|
|
|
|
$(MAKE) -C bin clean
|
|
|
|
$(MAKE) STATIC=1 -C lib
|
|
|
|
$(MAKE) STATIC=1 -C bin
|
2009-08-17 22:37:20 +05:30
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir install; \
|
|
|
|
done
|
|
|
|
@echo
|
|
|
|
@echo "Binaries have been installed into $(SBINDIR)."
|
|
|
|
@echo "Librares have been installed into $(LIBDIR)."
|
|
|
|
@echo
|
|
|
|
@echo "WARNING: Don't forget to rerun ldconfig(1)."
|
|
|
|
@echo
|
|
|
|
|
2009-08-21 14:47:58 +05:30
|
|
|
.PHONY: uninstall
|
2009-08-17 22:37:20 +05:30
|
|
|
uninstall:
|
2009-10-18 14:45:39 +05:30
|
|
|
for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir uninstall; \
|
|
|
|
done
|
2009-08-17 22:37:20 +05:30
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir clean; \
|
|
|
|
done
|