Desktop

PACKAGE = libDesktop
VERSION = 0.0.1
SUBDIRS = include src
RM = rm -f
LN = ln -f
TAR = tar -czvf
all: subdirs
subdirs:
@for i in $(SUBDIRS); do (cd $$i && $(MAKE)) || exit; done
clean:
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) clean) || exit; done
distclean:
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) distclean) || exit; done
dist:
$(RM) -r $(PACKAGE)-$(VERSION)
$(LN) -s . $(PACKAGE)-$(VERSION)
@$(TAR) $(PACKAGE)-$(VERSION).tar.gz \
$(PACKAGE)-$(VERSION)/include/Desktop.h \
$(PACKAGE)-$(VERSION)/include/Makefile \
$(PACKAGE)-$(VERSION)/include/project.conf \
$(PACKAGE)-$(VERSION)/include/Desktop/about.h \
$(PACKAGE)-$(VERSION)/include/Desktop/accel.h \
$(PACKAGE)-$(VERSION)/include/Desktop/assistant.h \
$(PACKAGE)-$(VERSION)/include/Desktop/menubar.h \
$(PACKAGE)-$(VERSION)/include/Desktop/toolbar.h \
$(PACKAGE)-$(VERSION)/include/Desktop/Makefile \
$(PACKAGE)-$(VERSION)/include/Desktop/project.conf \
$(PACKAGE)-$(VERSION)/src/about.c \
$(PACKAGE)-$(VERSION)/src/accel.c \
$(PACKAGE)-$(VERSION)/src/assistant.c \
$(PACKAGE)-$(VERSION)/src/menubar.c \
$(PACKAGE)-$(VERSION)/src/toolbar.c \
$(PACKAGE)-$(VERSION)/src/Makefile \
$(PACKAGE)-$(VERSION)/src/project.conf \
$(PACKAGE)-$(VERSION)/Makefile \
$(PACKAGE)-$(VERSION)/COPYING \
$(PACKAGE)-$(VERSION)/project.conf
$(RM) $(PACKAGE)-$(VERSION)
install: all
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) install) || exit; done
uninstall:
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit; done
.PHONY: all subdirs clean distclean dist install uninstall