PACKAGE = makepasswd VERSION = 0.5.1 SUBDIRS = doc 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)/doc/Makefile \ $(PACKAGE)-$(VERSION)/doc/db2man.sh \ $(PACKAGE)-$(VERSION)/doc/makepasswd.1.xml \ $(PACKAGE)-$(VERSION)/doc/project.conf \ $(PACKAGE)-$(VERSION)/src/makepasswd.c \ $(PACKAGE)-$(VERSION)/src/md5c.c \ $(PACKAGE)-$(VERSION)/src/Makefile \ $(PACKAGE)-$(VERSION)/src/global.h \ $(PACKAGE)-$(VERSION)/src/md5.h \ $(PACKAGE)-$(VERSION)/src/project.conf \ $(PACKAGE)-$(VERSION)/Makefile \ $(PACKAGE)-$(VERSION)/config.h \ $(PACKAGE)-$(VERSION)/config.sh \ $(PACKAGE)-$(VERSION)/project.conf $(RM) -- $(PACKAGE)-$(VERSION) install: @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