view 3rdparty/packages/uucpbb/makefile @ 2869:cfa6222348f7

makefiles: Separate OS9COPY and CP macros
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 24 Nov 2013 11:18:28 +0100 (2013-11-24)
parents e4a0f58a5f9b
children 1addfd8c9d5f
line wrap: on
line source
ifndef  NITROS9DIR
NITROS9DIR      = $(HOME)/nitros9
endif
include $(NITROS9DIR)/rules.mak

DISK68	= uucpbb21_6809.dsk
DISK63	= uucpbb21_6309.dsk
CMDS68		= $(shell $(CD) cmds_6809; make --no-print-directory showobjs)
CMDS68TCAP	= $(shell $(CD) cmds_6809; make --no-print-directory showtcapobjs) $(CMDS68)
CMDS68WIN	= $(shell $(CD) cmds_6809; make --no-print-directory showwinobjs) $(CMDS68)
CMDS63		= $(shell $(CD) cmds_6309; make --no-print-directory showobjs)
CMDS63TCAP	= $(shell $(CD) cmds_6309; make --no-print-directory showtcapobjs) $(CMDS63)
CMDS63WIN	= $(shell $(CD) cmds_6309; make --no-print-directory showwinobjs) $(CMDS63)
CONFIG	= Devices FileServ.help Systems bin.list Dialers Parameters active distributions
DOCS	= adduser.man aliases.doc chown.man cnvrtmail.man fileserv.man fixtext.man login.man mailrc.doc mailx.man parameters.doc postnews.man profile.doc readnews.man rmail.man rnews.man signature.doc subscribe.man uucico.man uuclean.man uucp.man uucpbb.doc uulog.man uuxqt.man whoami.man

DSKS	= $(DISK68) $(DISK63)

# Make all components
all:
	@$(ECHO) "**************************************************"
	@$(ECHO) "*                                                *"
	@$(ECHO) "*                   UUCPbb v2.1                  *"
	@$(ECHO) "*                                                *"
	@$(ECHO) "**************************************************"
	$(CD) cmds_6809; make
	$(CD) cmds_6309; make

# Clean all components
clean:	dskclean
	-$(CD) cmds_6809; make clean
	-$(CD) cmds_6309; make clean

dsk:	all
	$(RM) $(DISK68)
	$(OS9FORMAT) -l10000 $(DISK68) -q -n"UUCPbb v2.1 6809"
	$(MAKDIR) $(DISK68),LOG
	$(MAKDIR) $(DISK68),UUCP
	$(MAKDIR) $(DISK68),UUCP/CMDS_WIN
	$(MAKDIR) $(DISK68),UUCP/CMDS_TCAP
	$(MAKDIR) $(DISK68),UUCP/DOC
	$(MAKDIR) $(DISK68),UUCP/SPOOL
	$(MAKDIR) $(DISK68),UUCP/SPOOL/MAIL
	$(MAKDIR) $(DISK68),UUCP/SPOOL/NEWS
	$(MAKDIR) $(DISK68),UUCP/SPOOL/UUCP
	$(MAKDIR) $(DISK68),UUCP/SPOOL/UUCP/REDHAT
	$(MAKDIR) $(DISK68),UUCP/SPOOL/UUCPPUBLIC
	$(MAKDIR) $(DISK68),UUCP/SPOOL/REDHAT
	$(MAKDIR) $(DISK68),SYS
	$(MAKDIR) $(DISK68),SYS/UUCP
	$(CD) sample_config; $(CPL) $(CONFIG) ../$(DISK68),SYS/UUCP
	$(CPL) profile $(DISK68),SYS
	$(CD) cmds_6809; $(OS9COPY) $(CMDS68TCAP) ../$(DISK68),UUCP/CMDS_TCAP
	$(foreach file, $(CMDS68TCAP), $(OS9ATTR_EXEC) $(DISK68),UUCP/CMDS_TCAP/$(notdir $(file));)
	$(CD) cmds_6809; $(OS9COPY) $(CMDS68WIN) ../$(DISK68),UUCP/CMDS_WIN
	$(foreach file, $(CMDS68WIN), $(OS9ATTR_EXEC) $(DISK68),UUCP/CMDS_WIN/$(notdir $(file));)
	$(CD) doc; $(CPL) $(DOCS) ../$(DISK68),UUCP/DOC
	$(CPL) copying readme.first $(DISK68),UUCP

	$(RM) $(DISK63)
	$(OS9FORMAT) -l10000 $(DISK63) -q -n"UUCPbb v2.1 6309"
	$(MAKDIR) $(DISK63),LOG
	$(MAKDIR) $(DISK63),UUCP
	$(MAKDIR) $(DISK63),UUCP/DOC
	$(MAKDIR) $(DISK63),UUCP/CMDS_WIN
	$(MAKDIR) $(DISK63),UUCP/CMDS_TCAP
	$(MAKDIR) $(DISK63),UUCP/SPOOL
	$(MAKDIR) $(DISK63),UUCP/SPOOL/MAIL
	$(MAKDIR) $(DISK63),UUCP/SPOOL/NEWS
	$(MAKDIR) $(DISK63),UUCP/SPOOL/UUCP
	$(MAKDIR) $(DISK63),UUCP/SPOOL/UUCP/REDHAT
	$(MAKDIR) $(DISK63),UUCP/SPOOL/UUCPPUBLIC
	$(MAKDIR) $(DISK63),UUCP/SPOOL/REDHAT
	$(MAKDIR) $(DISK63),SYS
	$(MAKDIR) $(DISK63),SYS/UUCP
	$(CD) sample_config; $(CPL) $(CONFIG) ../$(DISK63),SYS/UUCP
	$(CPL) profile $(DISK63),SYS
	$(CD) cmds_6309; $(OS9COPY) $(CMDS63TCAP) ../$(DISK63),UUCP/CMDS_TCAP
	$(foreach file, $(CMDS63TCAP), $(OS9ATTR_EXEC) $(DISK63),UUCP/CMDS_TCAP/$(notdir $(file));)
	$(CD) cmds_6309; $(OS9COPY) $(CMDS63WIN) ../$(DISK63),UUCP/CMDS_WIN
	$(foreach file, $(CMDS63WIN), $(OS9ATTR_EXEC) $(DISK63),UUCP/CMDS_WIN/$(notdir $(file));)
	$(CD) doc; $(CPL) $(DOCS) ../$(DISK63),UUCP/DOC
	$(CPL) copying readme.first $(DISK63),UUCP

dskcopy: dsk
	$(CP) $(DSKS) $(DSKDIR)

dskclean:
	$(RM) $(DSKS)

info:
	@$(ECHO) "*** UUCPbb 2.1 ***"
	@$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)