view 3rdparty/packages/uucpbb/makefile @ 2856:84d284e812cd lwtools-port

Makefiles: Rename CP to OS9COPY CP is normally reserved for the host native cp equivalent.
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 13 Jul 2013 11:47:11 +0200
parents 94197db917c9
children d5220b220313
line wrap: on
line source

include ../../../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
	$(OS9ATTR_EXEC) $(foreach file,$(notdir $(CMDS68TCAP)),$(DISK68),UUCP/CMDS_TCAP/$(file))
	$(CD) cmds_6809; $(OS9COPY) $(CMDS68WIN) ../$(DISK68),UUCP/CMDS_WIN
	$(OS9ATTR_EXEC) $(foreach file,$(notdir $(CMDS68WIN)),$(DISK68),UUCP/CMDS_WIN/$(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
	$(OS9ATTR_EXEC) $(foreach file,$(notdir $(CMDS63TCAP)),$(DISK63),UUCP/CMDS_TCAP/$(file))
	$(CD) cmds_6309; $(OS9COPY) $(CMDS63WIN) ../$(DISK63),UUCP/CMDS_WIN
	$(OS9ATTR_EXEC) $(foreach file,$(notdir $(CMDS63WIN)),$(DISK63),UUCP/CMDS_WIN/$(file))
	$(CD) doc; $(CPL) $(DOCS) ../$(DISK63),UUCP/DOC
	$(CPL) copying readme.first $(DISK63),UUCP

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

dskclean:
	$(RM) $(DSKS)

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